#6236CF#6236CF

#6236CF is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.218 H 288.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#6236CF
RGBrgb(98, 54, 207)
HSLhsl(257, 61%, 51%)
HSVhsv(257, 74%, 81%)
CMYKcmyk(52.7%, 73.9%, 0%, 18.8%)
CIE-LABlab(37.37, 55.03, -71.92)
CIE-LCHlch(37.37, 90.56, 307.42°)
OKLaboklab(48.46% 0.0696 -0.2068)
OKLCHoklch(48.46% 0.218 288.6)
XYZxyz(17.6154, 9.7392, 59.9710)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236CF #A3CF36
analogous
#3656CF #6236CF #AE36CF
triadic
#6236CF #CF6236 #36CF62
tetradic
#6236CF #CF3656 #A3CF36 #36CFAE
square
#6236CF #CF3656 #A3CF36 #36CFAE
split-complementary
#6236CF #CFAE36 #56CF36
monochromatic
#331B70 #4A27A1 #6236CF #8967DB #AF99E7

Accessibility & contrast

On white

7.12
#6236CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6236CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236CF
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236CF#FFFFFF#000000##FFFFFF
##6236CF1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#386080
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6236cf;
/* rgb */ color: rgb(98, 54, 207);
/* oklch */ color: oklch(48.5% 0.218 288.6);
Tailwind
colors: {
  custom: {
    50: '#9972df',
    500: '#6236cf',
    950: '#000000',
  },
}
SCSS
$custom: #6236cf;
$custom-light: #9972df;
$custom-dark: #000000;
JSON
{
  "hex": "#6236cf",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 207
  },
  "hsl": {
    "h": 257.255,
    "s": 61.446,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48463,
    "c": 0.21818,
    "h": 288.6
  },
  "luminance": 0.0974
}

Semantic roles & 50–950 ramp

primary
#6236CF
secondary
#BFD28F
accent
#E543B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6236CF

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

Preview Lab → · Contrast checker → · Palette generator →

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