#6237AA#6237AA

#6237AA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.174 H 295.8°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#6237AA
RGBrgb(98, 55, 170)
HSLhsl(262, 51%, 44%)
HSVhsv(262, 68%, 67%)
CMYKcmyk(42.4%, 67.6%, 0%, 33.3%)
CIE-LABlab(34.46, 44.39, -54.91)
CIE-LCHlch(34.46, 70.60, 308.95°)
OKLaboklab(45.44% 0.076 -0.1568)
OKLCHoklch(45.44% 0.174 295.8)
XYZxyz(13.6570, 8.2310, 38.8916)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237AA #7FAA37
analogous
#3746AA #6237AA #9C37AA
triadic
#6237AA #AA6237 #37AA62
tetradic
#6237AA #AA3746 #7FAA37 #37AA9C
square
#6237AA #AA3746 #7FAA37 #37AA9C
split-complementary
#6237AA #AA9C37 #46AA37
monochromatic
#2D194E #47287C #6237AA #8156C8 #A384D7

Accessibility & contrast

On white

7.94
#6237AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6237AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6237AA#FFFFFF#000000##FFFFFF
##6237AA1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#4F526C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6237aa;
/* rgb */ color: rgb(98, 55, 170);
/* oklch */ color: oklch(45.4% 0.174 295.8);
Tailwind
colors: {
  custom: {
    50: '#9571c4',
    500: '#6237aa',
    950: '#000000',
  },
}
SCSS
$custom: #6237aa;
$custom-light: #9571c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6237aa",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 170
  },
  "hsl": {
    "h": 262.435,
    "s": 51.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45439,
    "c": 0.17424,
    "h": 295.8
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#6237AA
secondary
#A7C17C
accent
#DB4DA6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237AA

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

Preview Lab → · Contrast checker → · Palette generator →

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