#6237B2#6237B2

#6237B2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.184 H 294.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#6237B2
RGBrgb(98, 55, 178)
HSLhsl(261, 53%, 46%)
HSVhsv(261, 69%, 70%)
CMYKcmyk(44.9%, 69.1%, 0%, 30.2%)
CIE-LABlab(35.09, 46.57, -58.65)
CIE-LCHlch(35.09, 74.89, 308.45°)
OKLaboklab(46.09% 0.0747 -0.1678)
OKLCHoklch(46.09% 0.184 294)
XYZxyz(14.4369, 8.5430, 42.9992)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237B2 #87B237
analogous
#3749B2 #6237B2 #A037B2
triadic
#6237B2 #B26237 #37B262
tetradic
#6237B2 #B23749 #87B237 #37B2A0
square
#6237B2 #B23749 #87B237 #37B2A0
split-complementary
#6237B2 #B2A037 #49B237
monochromatic
#2F1A54 #482983 #6237B2 #825ACC #A589DB

Accessibility & contrast

On white

7.75
#6237B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6237B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237B2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237B2#FFFFFF#000000##FFFFFF
##6237B21.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#4B5570
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6237b2;
/* rgb */ color: rgb(98, 55, 178);
/* oklch */ color: oklch(46.1% 0.184 294.0);
Tailwind
colors: {
  custom: {
    50: '#9571ca',
    500: '#6237b2',
    950: '#000000',
  },
}
SCSS
$custom: #6237b2;
$custom-light: #9571ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6237b2",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 260.976,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46087,
    "c": 0.18372,
    "h": 294
  },
  "luminance": 0.08543
}

Semantic roles & 50–950 ramp

primary
#6237B2
secondary
#ADC580
accent
#DC4CAA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237B2

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

Preview Lab → · Contrast checker → · Palette generator →

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