#6236D1#6236D1

#6236D1 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.220 H 288.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#6236D1
RGBrgb(98, 54, 209)
HSLhsl(257, 63%, 52%)
HSVhsv(257, 74%, 82%)
CMYKcmyk(53.1%, 74.2%, 0%, 18%)
CIE-LABlab(37.55, 55.58, -72.79)
CIE-LCHlch(37.55, 91.58, 307.36°)
OKLaboklab(48.64% 0.0691 -0.2093)
OKLCHoklch(48.64% 0.22 288.3)
XYZxyz(17.8614, 9.8376, 61.2669)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236D1 #A5D136
analogous
#3658D1 #6236D1 #AF36D1
triadic
#6236D1 #D16236 #36D162
tetradic
#6236D1 #D13658 #A5D136 #36D1AF
square
#6236D1 #D13658 #A5D136 #36D1AF
split-complementary
#6236D1 #D1AF36 #58D136
monochromatic
#331A72 #4A26A4 #6236D1 #8968DC #B09AE8

Accessibility & contrast

On white

7.08
#6236D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6236D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236D1
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236D1#FFFFFF#000000##FFFFFF
##6236D11.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD5
Deuteranopia (green-blind)
#0054CE
Tritanopia (blue-blind)
#366181
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6236d1;
/* rgb */ color: rgb(98, 54, 209);
/* oklch */ color: oklch(48.6% 0.220 288.3);
Tailwind
colors: {
  custom: {
    50: '#9a72e0',
    500: '#6236d1',
    950: '#000000',
  },
}
SCSS
$custom: #6236d1;
$custom-light: #9a72e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6236d1",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 209
  },
  "hsl": {
    "h": 257.032,
    "s": 62.753,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48644,
    "c": 0.22042,
    "h": 288.3
  },
  "luminance": 0.09838
}

Semantic roles & 50–950 ramp

primary
#6236D1
secondary
#C0D38F
accent
#E642B7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6236D1

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

Preview Lab → · Contrast checker → · Palette generator →

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