#6237C6#6237C6

#6237C6 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.207 H 290.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#6237C6
RGBrgb(98, 55, 198)
HSLhsl(258, 57%, 50%)
HSVhsv(258, 72%, 78%)
CMYKcmyk(50.5%, 72.2%, 0%, 22.4%)
CIE-LABlab(36.75, 52.06, -67.70)
CIE-LCHlch(36.75, 85.41, 307.56°)
OKLaboklab(47.79% 0.0709 -0.1944)
OKLCHoklch(47.79% 0.207 290)
XYZxyz(16.5933, 9.4056, 54.3563)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237C6 #9BC637
analogous
#3753C6 #6237C6 #AA37C6
triadic
#6237C6 #C66237 #37C662
tetradic
#6237C6 #C63753 #9BC637 #37C6AA
square
#6237C6 #C63753 #9BC637 #37C6AA
split-complementary
#6237C6 #C6AA37 #53C637
monochromatic
#331C66 #4A2A96 #6237C6 #8766D4 #AD96E2

Accessibility & contrast

On white

7.29
#6237C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6237C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237C6
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237C6#FFFFFF#000000##FFFFFF
##6237C61.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#3F5D7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6237c6;
/* rgb */ color: rgb(98, 55, 198);
/* oklch */ color: oklch(47.8% 0.207 290.0);
Tailwind
colors: {
  custom: {
    50: '#9872d8',
    500: '#6237c6',
    950: '#000000',
  },
}
SCSS
$custom: #6237c6;
$custom-light: #9872d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6237c6",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 198
  },
  "hsl": {
    "h": 258.042,
    "s": 56.522,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47786,
    "c": 0.20692,
    "h": 290
  },
  "luminance": 0.09406
}

Semantic roles & 50–950 ramp

primary
#6237C6
secondary
#B9CD8C
accent
#E048B2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6237C6

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

Preview Lab → · Contrast checker → · Palette generator →

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