#6237B1#6237B1

#6237B1 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.183 H 294.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#6237B1
RGBrgb(98, 55, 177)
HSLhsl(261, 53%, 45%)
HSVhsv(261, 69%, 69%)
CMYKcmyk(44.6%, 68.9%, 0%, 30.6%)
CIE-LABlab(35.01, 46.29, -58.19)
CIE-LCHlch(35.01, 74.35, 308.51°)
OKLaboklab(46.01% 0.0749 -0.1665)
OKLCHoklch(46.01% 0.183 294.2)
XYZxyz(14.3369, 8.5030, 42.4723)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237B1 #86B137
analogous
#3749B1 #6237B1 #9F37B1
triadic
#6237B1 #B16237 #37B162
tetradic
#6237B1 #B13749 #86B137 #37B19F
square
#6237B1 #B13749 #86B137 #37B19F
split-complementary
#6237B1 #B19F37 #49B137
monochromatic
#2E1A54 #482882 #6237B1 #825ACC #A588DA

Accessibility & contrast

On white

7.78
#6237B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6237B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6237B1#FFFFFF#000000##FFFFFF
##6237B11.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#4C5570
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6237b1;
/* rgb */ color: rgb(98, 55, 177);
/* oklch */ color: oklch(46.0% 0.183 294.2);
Tailwind
colors: {
  custom: {
    50: '#9571c9',
    500: '#6237b1',
    950: '#000000',
  },
}
SCSS
$custom: #6237b1;
$custom-light: #9571c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6237b1",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 177
  },
  "hsl": {
    "h": 261.148,
    "s": 52.586,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46005,
    "c": 0.18254,
    "h": 294.2
  },
  "luminance": 0.08503
}

Semantic roles & 50–950 ramp

primary
#6237B1
secondary
#ACC480
accent
#DC4CA9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237B1

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

Preview Lab → · Contrast checker → · Palette generator →

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