#6237C2#6237C2

#6237C2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.202 H 290.8°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#6237C2
RGBrgb(98, 55, 194)
HSLhsl(259, 56%, 49%)
HSVhsv(259, 72%, 76%)
CMYKcmyk(49.5%, 71.6%, 0%, 23.9%)
CIE-LABlab(36.41, 50.96, -65.93)
CIE-LCHlch(36.41, 83.33, 307.70°)
OKLaboklab(47.44% 0.0717 -0.1892)
OKLCHoklch(47.44% 0.202 290.8)
XYZxyz(16.1380, 9.2234, 51.9585)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237C2 #97C237
analogous
#3752C2 #6237C2 #A837C2
triadic
#6237C2 #C26237 #37C262
tetradic
#6237C2 #C23752 #97C237 #37C2A8
square
#6237C2 #C23752 #97C237 #37C2A8
split-complementary
#6237C2 #C2A837 #52C237
monochromatic
#321C63 #4A2992 #6237C2 #8663D3 #AB93E0

Accessibility & contrast

On white

7.38
#6237C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6237C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237C2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237C2#FFFFFF#000000##FFFFFF
##6237C21.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)
#0058C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#425B79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6237c2;
/* rgb */ color: rgb(98, 55, 194);
/* oklch */ color: oklch(47.4% 0.202 290.8);
Tailwind
colors: {
  custom: {
    50: '#9772d6',
    500: '#6237c2',
    950: '#000000',
  },
}
SCSS
$custom: #6237c2;
$custom-light: #9772d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6237c2",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 258.561,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47438,
    "c": 0.20233,
    "h": 290.8
  },
  "luminance": 0.09224
}

Semantic roles & 50–950 ramp

primary
#6237C2
secondary
#B7CB89
accent
#DF49B1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6237C2

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

Preview Lab → · Contrast checker → · Palette generator →

#6237C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva