#6237AE#6237AE

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

Color values

HEX#6237AE
RGBrgb(98, 55, 174)
HSLhsl(262, 52%, 45%)
HSVhsv(262, 68%, 68%)
CMYKcmyk(43.7%, 68.4%, 0%, 31.8%)
CIE-LABlab(34.77, 45.47, -56.79)
CIE-LCHlch(34.77, 72.75, 308.69°)
OKLaboklab(45.76% 0.0754 -0.1623)
OKLCHoklch(45.76% 0.179 294.9)
XYZxyz(14.0411, 8.3847, 40.9148)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237AE #83AE37
analogous
#3747AE #6237AE #9E37AE
triadic
#6237AE #AE6237 #37AE62
tetradic
#6237AE #AE3747 #83AE37 #37AE9E
square
#6237AE #AE3747 #83AE37 #37AE9E
split-complementary
#6237AE #AE9E37 #47AE37
monochromatic
#2E1A51 #48287F #6237AE #8158CA #A486D9

Accessibility & contrast

On white

7.84
#6237AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6237AE#FFFFFF#000000##FFFFFF
##6237AE1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6237ae;
/* rgb */ color: rgb(98, 55, 174);
/* oklch */ color: oklch(45.8% 0.179 294.9);
Tailwind
colors: {
  custom: {
    50: '#9571c7',
    500: '#6237ae',
    950: '#000000',
  },
}
SCSS
$custom: #6237ae;
$custom-light: #9571c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6237ae",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 174
  },
  "hsl": {
    "h": 261.681,
    "s": 51.965,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4576,
    "c": 0.17899,
    "h": 294.9
  },
  "luminance": 0.08385
}

Semantic roles & 50–950 ramp

primary
#6237AE
secondary
#AAC37E
accent
#DB4CA8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237AE

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

Preview Lab → · Contrast checker → · Palette generator →

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