#6237D4#6237D4

#6237D4 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.223 H 287.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#6237D4
RGBrgb(98, 55, 212)
HSLhsl(256, 65%, 52%)
HSVhsv(256, 74%, 83%)
CMYKcmyk(53.8%, 74.1%, 0%, 16.9%)
CIE-LABlab(37.99, 55.92, -73.80)
CIE-LCHlch(37.99, 92.59, 307.15°)
OKLaboklab(49.04% 0.0676 -0.2123)
OKLCHoklch(49.04% 0.223 287.7)
XYZxyz(18.2833, 10.0816, 63.2571)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237D4 #A9D437
analogous
#375BD4 #6237D4 #B037D4
triadic
#6237D4 #D46237 #37D462
tetradic
#6237D4 #D4375B #A9D437 #37D4B0
square
#6237D4 #D4375B #A9D437 #37D4B0
split-complementary
#6237D4 #D4B037 #5BD437
monochromatic
#331A77 #4924A9 #6237D4 #8A69DF #B19CEA

Accessibility & contrast

On white

6.96
#6237D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6237D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6237D4
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237D4#FFFFFF#000000##FFFFFF
##6237D41.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD9
Deuteranopia (green-blind)
#0055D1
Tritanopia (blue-blind)
#336283
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6237d4;
/* rgb */ color: rgb(98, 55, 212);
/* oklch */ color: oklch(49.0% 0.223 287.7);
Tailwind
colors: {
  custom: {
    50: '#9a72e2',
    500: '#6237d4',
    950: '#000000',
  },
}
SCSS
$custom: #6237d4;
$custom-light: #9a72e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6237d4",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 212
  },
  "hsl": {
    "h": 256.433,
    "s": 64.609,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49035,
    "c": 0.22278,
    "h": 287.7
  },
  "luminance": 0.10083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6237D4

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

Preview Lab → · Contrast checker → · Palette generator →

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