#6237A2#6237A2

#6237A2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.165 H 297.9°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#6237A2
RGBrgb(98, 55, 162)
HSLhsl(264, 49%, 43%)
HSVhsv(264, 66%, 64%)
CMYKcmyk(39.5%, 66%, 0%, 36.5%)
CIE-LABlab(33.85, 42.23, -51.09)
CIE-LCHlch(33.85, 66.28, 309.58°)
OKLaboklab(44.81% 0.077 -0.1456)
OKLCHoklch(44.81% 0.165 297.9)
XYZxyz(12.9231, 7.9375, 35.0266)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237A2 #77A237
analogous
#3742A2 #6237A2 #9737A2
triadic
#6237A2 #A26237 #37A262
tetradic
#6237A2 #A23742 #77A237 #37A297
square
#6237A2 #A23742 #77A237 #37A297
split-complementary
#6237A2 #A29737 #42A237
monochromatic
#2B1847 #462774 #6237A2 #8052C4 #A180D4

Accessibility & contrast

On white

8.12
#6237A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6237A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237A2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237A2#FFFFFF#000000##FFFFFF
##6237A21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#535067
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6237a2;
/* rgb */ color: rgb(98, 55, 162);
/* oklch */ color: oklch(44.8% 0.165 297.9);
Tailwind
colors: {
  custom: {
    50: '#9470be',
    500: '#6237a2',
    950: '#000000',
  },
}
SCSS
$custom: #6237a2;
$custom-light: #9470be;
$custom-dark: #000000;
JSON
{
  "hex": "#6237a2",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 264.112,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44811,
    "c": 0.16467,
    "h": 297.9
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#6237A2
secondary
#A1BD78
accent
#D94FA1
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6237A2

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

Preview Lab → · Contrast checker → · Palette generator →

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