#6231D3#6231D3

#6231D3 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.227 H 288.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#6231D3
RGBrgb(98, 49, 211)
HSLhsl(258, 65%, 51%)
HSVhsv(258, 77%, 83%)
CMYKcmyk(53.6%, 76.8%, 0%, 17.3%)
CIE-LABlab(36.92, 58.43, -74.98)
CIE-LCHlch(36.92, 95.06, 307.93°)
OKLaboklab(48.26% 0.0722 -0.2157)
OKLCHoklch(48.26% 0.227 288.5)
XYZxyz(17.8897, 9.4956, 62.5056)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231D3 #A2D331
analogous
#3151D3 #6231D3 #B331D3
triadic
#6231D3 #D36231 #31D362
tetradic
#6231D3 #D33151 #A2D331 #31D3B3
square
#6231D3 #D33151 #A2D331 #31D3B3
split-complementary
#6231D3 #D3B331 #51D331
monochromatic
#331871 #4A23A4 #6231D3 #8863DE #AF96E9

Accessibility & contrast

On white

7.24
#6231D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6231D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231D3
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231D3#FFFFFF#000000##FFFFFF
##6231D31.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#0053D0
Tritanopia (blue-blind)
#345F81
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6231d3;
/* rgb */ color: rgb(98, 49, 211);
/* oklch */ color: oklch(48.3% 0.227 288.5);
Tailwind
colors: {
  custom: {
    50: '#9a6fe2',
    500: '#6231d3',
    950: '#000000',
  },
}
SCSS
$custom: #6231d3;
$custom-light: #9a6fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#6231d3",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 211
  },
  "hsl": {
    "h": 258.148,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4826,
    "c": 0.22744,
    "h": 288.5
  },
  "luminance": 0.09496
}

Semantic roles & 50–950 ramp

primary
#6231D3
secondary
#BED48C
accent
#E840B5
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6231D3

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#6231D3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva