#6237AC#6237AC

#6237AC is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.177 H 295.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#6237AC
RGBrgb(98, 55, 172)
HSLhsl(262, 52%, 45%)
HSVhsv(262, 68%, 67%)
CMYKcmyk(43%, 68%, 0%, 32.5%)
CIE-LABlab(34.61, 44.93, -55.85)
CIE-LCHlch(34.61, 71.68, 308.82°)
OKLaboklab(45.6% 0.0757 -0.1596)
OKLCHoklch(45.6% 0.177 295.4)
XYZxyz(13.8476, 8.3073, 39.8956)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237AC #81AC37
analogous
#3747AC #6237AC #9D37AC
triadic
#6237AC #AC6237 #37AC62
tetradic
#6237AC #AC3747 #81AC37 #37AC9D
square
#6237AC #AC3747 #81AC37 #37AC9D
split-complementary
#6237AC #AC9D37 #47AC37
monochromatic
#2D194F #48287E #6237AC #8157C9 #A485D8

Accessibility & contrast

On white

7.89
#6237AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6237AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6237AC#FFFFFF#000000##FFFFFF
##6237AC1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#4E536D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6237ac;
/* rgb */ color: rgb(98, 55, 172);
/* oklch */ color: oklch(45.6% 0.177 295.4);
Tailwind
colors: {
  custom: {
    50: '#9571c6',
    500: '#6237ac',
    950: '#000000',
  },
}
SCSS
$custom: #6237ac;
$custom-light: #9571c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6237ac",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 262.051,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45599,
    "c": 0.17663,
    "h": 295.4
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#6237AC
secondary
#A9C27D
accent
#DB4DA7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237AC

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

Preview Lab → · Contrast checker → · Palette generator →

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