#6237CA#6237CA

#6237CA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.211 H 289.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#6237CA
RGBrgb(98, 55, 202)
HSLhsl(258, 58%, 50%)
HSVhsv(258, 73%, 79%)
CMYKcmyk(51.5%, 72.8%, 0%, 20.8%)
CIE-LABlab(37.10, 53.17, -69.46)
CIE-LCHlch(37.10, 87.47, 307.43°)
OKLaboklab(48.14% 0.07 -0.1996)
OKLCHoklch(48.14% 0.211 289.3)
XYZxyz(17.0608, 9.5925, 56.8183)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237CA #9FCA37
analogous
#3755CA #6237CA #AB37CA
triadic
#6237CA #CA6237 #37CA62
tetradic
#6237CA #CA3755 #9FCA37 #37CAAB
square
#6237CA #CA3755 #9FCA37 #37CAAB
split-complementary
#6237CA #CAAB37 #55CA37
monochromatic
#331C6A #4A299B #6237CA #8867D7 #AE98E4

Accessibility & contrast

On white

7.20
#6237CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#6237CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237CA
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237CA#FFFFFF#000000##FFFFFF
##6237CA1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#3C5E7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6237ca;
/* rgb */ color: rgb(98, 55, 202);
/* oklch */ color: oklch(48.1% 0.211 289.3);
Tailwind
colors: {
  custom: {
    50: '#9972db',
    500: '#6237ca',
    950: '#000000',
  },
}
SCSS
$custom: #6237ca;
$custom-light: #9972db;
$custom-dark: #000000;
JSON
{
  "hex": "#6237ca",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 257.551,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48138,
    "c": 0.21148,
    "h": 289.3
  },
  "luminance": 0.09593
}

Semantic roles & 50–950 ramp

primary
#6237CA
secondary
#BCCF8E
accent
#E146B4
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6237CA

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

Preview Lab → · Contrast checker → · Palette generator →

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