#6237BA#6237BA

#6237BA is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.193 H 292.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#6237BA
RGBrgb(98, 55, 186)
HSLhsl(260, 54%, 47%)
HSVhsv(260, 70%, 73%)
CMYKcmyk(47.3%, 70.4%, 0%, 27.1%)
CIE-LABlab(35.74, 48.76, -62.32)
CIE-LCHlch(35.74, 79.13, 308.04°)
OKLaboklab(46.75% 0.0733 -0.1786)
OKLCHoklch(46.75% 0.193 292.3)
XYZxyz(15.2636, 8.8737, 47.3534)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237BA #8FBA37
analogous
#374DBA #6237BA #A437BA
triadic
#6237BA #BA6237 #37BA62
tetradic
#6237BA #BA374D #8FBA37 #37BAA4
square
#6237BA #BA374D #8FBA37 #37BAA4
split-complementary
#6237BA #BAA437 #4DBA37
monochromatic
#301B5C #49298B #6237BA #845FD0 #A88EDE

Accessibility & contrast

On white

7.57
#6237BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6237BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237BA
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237BA#FFFFFF#000000##FFFFFF
##6237BA1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#475874
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6237ba;
/* rgb */ color: rgb(98, 55, 186);
/* oklch */ color: oklch(46.8% 0.193 292.3);
Tailwind
colors: {
  custom: {
    50: '#9671d0',
    500: '#6237ba',
    950: '#000000',
  },
}
SCSS
$custom: #6237ba;
$custom-light: #9671d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6237ba",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 259.695,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46753,
    "c": 0.19308,
    "h": 292.3
  },
  "luminance": 0.08874
}

Semantic roles & 50–950 ramp

primary
#6237BA
secondary
#B2C885
accent
#DE4AAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6237BA

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

Preview Lab → · Contrast checker → · Palette generator →

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