#6237CC#6237CC

#6237CC is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.214 H 289.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#6237CC
RGBrgb(98, 55, 204)
HSLhsl(257, 59%, 51%)
HSVhsv(257, 73%, 80%)
CMYKcmyk(52%, 73%, 0%, 20%)
CIE-LABlab(37.28, 53.72, -70.34)
CIE-LCHlch(37.28, 88.50, 307.37°)
OKLaboklab(48.32% 0.0695 -0.2021)
OKLCHoklch(48.32% 0.214 289)
XYZxyz(17.2991, 9.6879, 58.0735)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237CC #A1CC37
analogous
#3756CC #6237CC #AC37CC
triadic
#6237CC #CC6237 #37CC62
tetradic
#6237CC #CC3756 #A1CC37 #37CCAC
square
#6237CC #CC3756 #A1CC37 #37CCAC
split-complementary
#6237CC #CCAC37 #56CC37
monochromatic
#331C6D #4A289E #6237CC #8868D8 #AF99E5

Accessibility & contrast

On white

7.15
#6237CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#6237CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237CC
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237CC#FFFFFF#000000##FFFFFF
##6237CC1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#3A5F7F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6237cc;
/* rgb */ color: rgb(98, 55, 204);
/* oklch */ color: oklch(48.3% 0.214 289.0);
Tailwind
colors: {
  custom: {
    50: '#9972dd',
    500: '#6237cc',
    950: '#000000',
  },
}
SCSS
$custom: #6237cc;
$custom-light: #9972dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6237cc",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 257.315,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48316,
    "c": 0.21375,
    "h": 289
  },
  "luminance": 0.09689
}

Semantic roles & 50–950 ramp

primary
#6237CC
secondary
#BDD08E
accent
#E345B5
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6237CC

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

Preview Lab → · Contrast checker → · Palette generator →

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