#6237A4#6237A4

#6237A4 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.167 H 297.3°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#6237A4
RGBrgb(98, 55, 164)
HSLhsl(264, 50%, 43%)
HSVhsv(264, 66%, 64%)
CMYKcmyk(40.2%, 66.5%, 0%, 35.7%)
CIE-LABlab(34.00, 42.76, -52.05)
CIE-LCHlch(34.00, 67.36, 309.41°)
OKLaboklab(44.97% 0.0767 -0.1484)
OKLCHoklch(44.97% 0.167 297.3)
XYZxyz(13.1023, 8.0092, 35.9704)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237A4 #79A437
analogous
#3742A4 #6237A4 #9937A4
triadic
#6237A4 #A46237 #37A462
tetradic
#6237A4 #A43742 #79A437 #37A499
square
#6237A4 #A43742 #79A437 #37A499
split-complementary
#6237A4 #A49937 #42A437
monochromatic
#2B1848 #472876 #6237A4 #8053C5 #A281D5

Accessibility & contrast

On white

8.07
#6237A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6237A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237A4
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237A4#FFFFFF#000000##FFFFFF
##6237A41.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#525068
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6237a4;
/* rgb */ color: rgb(98, 55, 164);
/* oklch */ color: oklch(45.0% 0.167 297.3);
Tailwind
colors: {
  custom: {
    50: '#9471c0',
    500: '#6237a4',
    950: '#000000',
  },
}
SCSS
$custom: #6237a4;
$custom-light: #9471c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6237a4",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 263.67,
    "s": 49.772,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44966,
    "c": 0.16708,
    "h": 297.3
  },
  "luminance": 0.08009
}

Semantic roles & 50–950 ramp

primary
#6237A4
secondary
#A3BE79
accent
#D94FA3
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6237A4

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

Preview Lab → · Contrast checker → · Palette generator →

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