#6236CA#6236CA

#6236CA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.213 H 289.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#6236CA
RGBrgb(98, 54, 202)
HSLhsl(258, 58%, 50%)
HSVhsv(258, 73%, 79%)
CMYKcmyk(51.5%, 73.3%, 0%, 20.8%)
CIE-LABlab(36.93, 53.66, -69.75)
CIE-LCHlch(36.93, 88.00, 307.57°)
OKLaboklab(48.02% 0.0708 -0.2004)
OKLCHoklch(48.02% 0.213 289.5)
XYZxyz(17.0137, 9.4985, 56.8026)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236CA #9ECA36
analogous
#3654CA #6236CA #AC36CA
triadic
#6236CA #CA6236 #36CA62
tetradic
#6236CA #CA3654 #9ECA36 #36CAAC
square
#6236CA #CA3654 #9ECA36 #36CAAC
split-complementary
#6236CA #CAAC36 #54CA36
monochromatic
#331C6A #4A299A #6236CA #8866D7 #AE97E4

Accessibility & contrast

On white

7.24
#6236CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6236CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236CA
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236CA#FFFFFF#000000##FFFFFF
##6236CA1.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)
#005ACE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#3C5E7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6236ca;
/* rgb */ color: rgb(98, 54, 202);
/* oklch */ color: oklch(48.0% 0.213 289.5);
Tailwind
colors: {
  custom: {
    50: '#9971db',
    500: '#6236ca',
    950: '#000000',
  },
}
SCSS
$custom: #6236ca;
$custom-light: #9971db;
$custom-dark: #000000;
JSON
{
  "hex": "#6236ca",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 202
  },
  "hsl": {
    "h": 257.838,
    "s": 58.268,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48015,
    "c": 0.21254,
    "h": 289.5
  },
  "luminance": 0.09499
}

Semantic roles & 50–950 ramp

primary
#6236CA
secondary
#BBCF8D
accent
#E146B3
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6236CA

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

Preview Lab → · Contrast checker → · Palette generator →

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