#6237D2#6237D2

#6237D2 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.221 H 288.0°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6237D2
RGBrgb(98, 55, 210)
HSLhsl(257, 63%, 52%)
HSVhsv(257, 74%, 82%)
CMYKcmyk(53.3%, 73.8%, 0%, 17.6%)
CIE-LABlab(37.81, 55.37, -72.94)
CIE-LCHlch(37.81, 91.58, 307.20°)
OKLaboklab(48.85% 0.0681 -0.2098)
OKLCHoklch(48.85% 0.221 288)
XYZxyz(18.0326, 9.9813, 61.9367)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237D2 #A7D237
analogous
#375AD2 #6237D2 #AF37D2
triadic
#6237D2 #D26237 #37D262
tetradic
#6237D2 #D2375A #A7D237 #37D2AF
square
#6237D2 #D2375A #A7D237 #37D2AF
split-complementary
#6237D2 #D2AF37 #5AD237
monochromatic
#331A74 #4925A6 #6237D2 #8969DD #B09BE8

Accessibility & contrast

On white

7.01
#6237D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6237D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6237D2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237D2#FFFFFF#000000##FFFFFF
##6237D21.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#356282
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6237d2;
/* rgb */ color: rgb(98, 55, 210);
/* oklch */ color: oklch(48.9% 0.221 288.0);
Tailwind
colors: {
  custom: {
    50: '#9a72e1',
    500: '#6237d2',
    950: '#000000',
  },
}
SCSS
$custom: #6237d2;
$custom-light: #9a72e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6237d2",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 210
  },
  "hsl": {
    "h": 256.645,
    "s": 63.265,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48854,
    "c": 0.22053,
    "h": 288
  },
  "luminance": 0.09982
}

Semantic roles & 50–950 ramp

primary
#6237D2
secondary
#C2D490
accent
#E641B9
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #6237D2

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

Preview Lab → · Contrast checker → · Palette generator →

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