#6237B5#6237B5

#6237B5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.187 H 293.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#6237B5
RGBrgb(98, 55, 181)
HSLhsl(260, 53%, 46%)
HSVhsv(260, 70%, 71%)
CMYKcmyk(45.9%, 69.6%, 0%, 29%)
CIE-LABlab(35.33, 47.39, -60.03)
CIE-LCHlch(35.33, 76.48, 308.28°)
OKLaboklab(46.34% 0.0742 -0.1719)
OKLCHoklch(46.34% 0.187 293.4)
XYZxyz(14.7414, 8.6648, 44.6029)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237B5 #8AB537
analogous
#374BB5 #6237B5 #A137B5
triadic
#6237B5 #B56237 #37B562
tetradic
#6237B5 #B5374B #8AB537 #37B5A1
square
#6237B5 #B5374B #8AB537 #37B5A1
split-complementary
#6237B5 #B5A137 #4BB537
monochromatic
#2F1A57 #492986 #6237B5 #835CCD #A68BDC

Accessibility & contrast

On white

7.68
#6237B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6237B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237B5
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237B5#FFFFFF#000000##FFFFFF
##6237B51.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#4A5772
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6237b5;
/* rgb */ color: rgb(98, 55, 181);
/* oklch */ color: oklch(46.3% 0.187 293.4);
Tailwind
colors: {
  custom: {
    50: '#9671cc',
    500: '#6237b5',
    950: '#000000',
  },
}
SCSS
$custom: #6237b5;
$custom-light: #9671cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6237b5",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 181
  },
  "hsl": {
    "h": 260.476,
    "s": 53.39,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46335,
    "c": 0.18724,
    "h": 293.4
  },
  "luminance": 0.08665
}

Semantic roles & 50–950 ramp

primary
#6237B5
secondary
#AFC682
accent
#DD4BAB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237B5

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

Preview Lab → · Contrast checker → · Palette generator →

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