#6237D5#6237D5

#6237D5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.224 H 287.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6237D5
RGBrgb(98, 55, 213)
HSLhsl(256, 65%, 53%)
HSVhsv(256, 74%, 84%)
CMYKcmyk(54%, 74.2%, 0%, 16.5%)
CIE-LABlab(38.08, 56.20, -74.23)
CIE-LCHlch(38.08, 93.10, 307.13°)
OKLaboklab(49.13% 0.0673 -0.2135)
OKLCHoklch(49.13% 0.224 287.5)
XYZxyz(18.4099, 10.1322, 63.9235)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237D5 #AAD537
analogous
#375BD5 #6237D5 #B137D5
triadic
#6237D5 #D56237 #37D562
tetradic
#6237D5 #D5375B #AAD537 #37D5B1
square
#6237D5 #D5375B #AAD537 #37D5B1
split-complementary
#6237D5 #D5B137 #5BD537
monochromatic
#331978 #4924AB #6237D5 #8A6AE0 #B19CEA

Accessibility & contrast

On white

6.94
#6237D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6237D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6237D5
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237D5#FFFFFF#000000##FFFFFF
##6237D51.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDA
Deuteranopia (green-blind)
#0055D2
Tritanopia (blue-blind)
#326384
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6237d5;
/* rgb */ color: rgb(98, 55, 213);
/* oklch */ color: oklch(49.1% 0.224 287.5);
Tailwind
colors: {
  custom: {
    50: '#9a72e3',
    500: '#6237d5',
    950: '#000000',
  },
}
SCSS
$custom: #6237d5;
$custom-light: #9a72e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6237d5",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 213
  },
  "hsl": {
    "h": 256.329,
    "s": 65.289,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49126,
    "c": 0.2239,
    "h": 287.5
  },
  "luminance": 0.10133
}

Semantic roles & 50–950 ramp

primary
#6237D5
secondary
#C4D692
accent
#E840BA
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6237D5

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

Preview Lab → · Contrast checker → · Palette generator →

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