#6236C4#6236C4

#6236C4 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.206 H 290.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#6236C4
RGBrgb(98, 54, 196)
HSLhsl(259, 57%, 49%)
HSVhsv(259, 72%, 77%)
CMYKcmyk(50%, 72.4%, 0%, 23.1%)
CIE-LABlab(36.40, 52.01, -67.11)
CIE-LCHlch(36.40, 84.90, 307.78°)
OKLaboklab(47.49% 0.0722 -0.1927)
OKLCHoklch(47.49% 0.206 290.5)
XYZxyz(16.3171, 9.2199, 53.1337)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236C4 #98C436
analogous
#3651C4 #6236C4 #A936C4
triadic
#6236C4 #C46236 #36C462
tetradic
#6236C4 #C43651 #98C436 #36C4A9
square
#6236C4 #C43651 #98C436 #36C4A9
split-complementary
#6236C4 #C4A936 #51C436
monochromatic
#321C64 #4A2994 #6236C4 #8663D4 #AB93E1

Accessibility & contrast

On white

7.38
#6236C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6236C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236C4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236C4#FFFFFF#000000##FFFFFF
##6236C41.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#405C7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6236c4;
/* rgb */ color: rgb(98, 54, 196);
/* oklch */ color: oklch(47.5% 0.206 290.5);
Tailwind
colors: {
  custom: {
    50: '#9871d7',
    500: '#6236c4',
    950: '#000000',
  },
}
SCSS
$custom: #6236c4;
$custom-light: #9871d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6236c4",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 196
  },
  "hsl": {
    "h": 258.592,
    "s": 56.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47486,
    "c": 0.20573,
    "h": 290.5
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#6236C4
secondary
#B8CC89
accent
#E048B1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6236C4

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

Preview Lab → · Contrast checker → · Palette generator →

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