#6237AD#6237AD

#6237AD is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.178 H 295.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#6237AD
RGBrgb(98, 55, 173)
HSLhsl(262, 52%, 45%)
HSVhsv(262, 68%, 68%)
CMYKcmyk(43.4%, 68.2%, 0%, 32.2%)
CIE-LABlab(34.69, 45.20, -56.32)
CIE-LCHlch(34.69, 72.21, 308.75°)
OKLaboklab(45.68% 0.0755 -0.161)
OKLCHoklch(45.68% 0.178 295.1)
XYZxyz(13.9440, 8.3458, 40.4033)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237AD #82AD37
analogous
#3747AD #6237AD #9D37AD
triadic
#6237AD #AD6237 #37AD62
tetradic
#6237AD #AD3747 #82AD37 #37AD9D
square
#6237AD #AD3747 #82AD37 #37AD9D
split-complementary
#6237AD #AD9D37 #47AD37
monochromatic
#2D1950 #48287F #6237AD #8157CA #A486D8

Accessibility & contrast

On white

7.87
#6237AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6237AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6237AD#FFFFFF#000000##FFFFFF
##6237AD1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#4E546D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6237ad;
/* rgb */ color: rgb(98, 55, 173);
/* oklch */ color: oklch(45.7% 0.178 295.1);
Tailwind
colors: {
  custom: {
    50: '#9571c6',
    500: '#6237ad',
    950: '#000000',
  },
}
SCSS
$custom: #6237ad;
$custom-light: #9571c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6237ad",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 173
  },
  "hsl": {
    "h": 261.864,
    "s": 51.754,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45679,
    "c": 0.17781,
    "h": 295.1
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#6237AD
secondary
#A9C27D
accent
#DB4DA7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237AD

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

Preview Lab → · Contrast checker → · Palette generator →

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