#6236D9#6236D9

#6236D9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.229 H 287.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#6236D9
RGBrgb(98, 54, 217)
HSLhsl(256, 68%, 53%)
HSVhsv(256, 75%, 85%)
CMYKcmyk(54.8%, 75.1%, 0%, 14.9%)
CIE-LABlab(38.28, 57.77, -76.21)
CIE-LCHlch(38.28, 95.63, 307.17°)
OKLaboklab(49.38% 0.0671 -0.2193)
OKLCHoklch(49.38% 0.229 287)
XYZxyz(18.8768, 10.2437, 66.6148)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236D9 #ADD936
analogous
#365BD9 #6236D9 #B336D9
triadic
#6236D9 #D96236 #36D962
tetradic
#6236D9 #D9365B #ADD936 #36D9B3
square
#6236D9 #D9365B #ADD936 #36D9B3
split-complementary
#6236D9 #D9B336 #5BD936
monochromatic
#33187D #4821B0 #6236D9 #8A69E3 #B29DEC

Accessibility & contrast

On white

6.89
#6236D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6236D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6236D9
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236D9#FFFFFF#000000##FFFFFF
##6236D91.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#2D6486
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6236d9;
/* rgb */ color: rgb(98, 54, 217);
/* oklch */ color: oklch(49.4% 0.229 287.0);
Tailwind
colors: {
  custom: {
    50: '#9b72e6',
    500: '#6236d9',
    950: '#000000',
  },
}
SCSS
$custom: #6236d9;
$custom-light: #9b72e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6236d9",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 217
  },
  "hsl": {
    "h": 256.196,
    "s": 68.201,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49376,
    "c": 0.22934,
    "h": 287
  },
  "luminance": 0.10245
}

Semantic roles & 50–950 ramp

primary
#6236D9
secondary
#C6D992
accent
#EB3DBC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6236D9

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

Preview Lab → · Contrast checker → · Palette generator →

#6236D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva