#6237AF#6237AF

#6237AF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.180 H 294.7°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#6237AF
RGBrgb(98, 55, 175)
HSLhsl(262, 52%, 45%)
HSVhsv(262, 69%, 69%)
CMYKcmyk(44%, 68.6%, 0%, 31.4%)
CIE-LABlab(34.85, 45.75, -57.25)
CIE-LCHlch(34.85, 73.29, 308.63°)
OKLaboklab(45.84% 0.0752 -0.1637)
OKLCHoklch(45.84% 0.18 294.7)
XYZxyz(14.1390, 8.4238, 41.4301)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237AF #84AF37
analogous
#3748AF #6237AF #9E37AF
triadic
#6237AF #AF6237 #37AF62
tetradic
#6237AF #AF3748 #84AF37 #37AF9E
square
#6237AF #AF3748 #84AF37 #37AF9E
split-complementary
#6237AF #AF9E37 #48AF37
monochromatic
#2E1A52 #482880 #6237AF #8159CB #A587D9

Accessibility & contrast

On white

7.82
#6237AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6237AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6237AF#FFFFFF#000000##FFFFFF
##6237AF1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#4D546E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6237af;
/* rgb */ color: rgb(98, 55, 175);
/* oklch */ color: oklch(45.8% 0.180 294.7);
Tailwind
colors: {
  custom: {
    50: '#9571c8',
    500: '#6237af',
    950: '#000000',
  },
}
SCSS
$custom: #6237af;
$custom-light: #9571c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6237af",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 261.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45841,
    "c": 0.18018,
    "h": 294.7
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#6237AF
secondary
#ABC37F
accent
#DC4CA8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237AF

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

Preview Lab → · Contrast checker → · Palette generator →

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