#6236CD#6236CD

#6236CD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.216 H 288.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#6236CD
RGBrgb(98, 54, 205)
HSLhsl(257, 60%, 51%)
HSVhsv(257, 74%, 80%)
CMYKcmyk(52.2%, 73.7%, 0%, 19.6%)
CIE-LABlab(37.19, 54.48, -71.06)
CIE-LCHlch(37.19, 89.54, 307.48°)
OKLaboklab(48.28% 0.0701 -0.2042)
OKLCHoklch(48.28% 0.216 288.9)
XYZxyz(17.3724, 9.6420, 58.6915)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236CD #A1CD36
analogous
#3656CD #6236CD #AD36CD
triadic
#6236CD #CD6236 #36CD62
tetradic
#6236CD #CD3656 #A1CD36 #36CDAD
square
#6236CD #CD3656 #A1CD36 #36CDAD
split-complementary
#6236CD #CDAD36 #56CD36
monochromatic
#331B6D #4A279E #6236CD #8867D9 #AF98E5

Accessibility & contrast

On white

7.17
#6236CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6236CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236CD
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236CD#FFFFFF#000000##FFFFFF
##6236CD1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#395F7F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6236cd;
/* rgb */ color: rgb(98, 54, 205);
/* oklch */ color: oklch(48.3% 0.216 288.9);
Tailwind
colors: {
  custom: {
    50: '#9972dd',
    500: '#6236cd',
    950: '#000000',
  },
}
SCSS
$custom: #6236cd;
$custom-light: #9972dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6236cd",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 205
  },
  "hsl": {
    "h": 257.483,
    "s": 60.159,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48284,
    "c": 0.21593,
    "h": 288.9
  },
  "luminance": 0.09643
}

Semantic roles & 50–950 ramp

primary
#6236CD
secondary
#BDD18E
accent
#E344B5
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6236CD

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

Preview Lab → · Contrast checker → · Palette generator →

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