#6237E2#6237E2

#6237E2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.238 H 285.6°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#6237E2
RGBrgb(98, 55, 226)
HSLhsl(255, 75%, 55%)
HSVhsv(255, 76%, 89%)
CMYKcmyk(56.6%, 75.7%, 0%, 11.4%)
CIE-LABlab(39.27, 59.77, -79.72)
CIE-LCHlch(39.27, 99.64, 306.86°)
OKLaboklab(50.33% 0.064 -0.2296)
OKLCHoklch(50.33% 0.238 285.6)
XYZxyz(20.1265, 10.8188, 72.9645)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237E2 #B7E237
analogous
#3761E2 #6237E2 #B837E2
triadic
#6237E2 #E26237 #37E262
tetradic
#6237E2 #E23761 #B7E237 #37E2B8
square
#6237E2 #E23761 #B7E237 #37E2B8
split-complementary
#6237E2 #E2B837 #61E237
monochromatic
#32148B #451CC0 #6237E2 #8C6CEA #B6A2F2

Accessibility & contrast

On white

6.64
#6237E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6237E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6237E2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237E2#FFFFFF#000000##FFFFFF
##6237E21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E7
Deuteranopia (green-blind)
#0057DF
Tritanopia (blue-blind)
#20688B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6237e2;
/* rgb */ color: rgb(98, 55, 226);
/* oklch */ color: oklch(50.3% 0.238 285.6);
Tailwind
colors: {
  custom: {
    50: '#9c73ec',
    500: '#6237e2',
    950: '#000000',
  },
}
SCSS
$custom: #6237e2;
$custom-light: #9c73ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6237e2",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 226
  },
  "hsl": {
    "h": 255.088,
    "s": 74.672,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50327,
    "c": 0.23835,
    "h": 285.6
  },
  "luminance": 0.1082
}

Semantic roles & 50–950 ramp

primary
#6237E2
secondary
#CCDE97
accent
#F137C2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6237E2

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

Preview Lab → · Contrast checker → · Palette generator →

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