#6237AB#6237AB

#6237AB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.175 H 295.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#6237AB
RGBrgb(98, 55, 171)
HSLhsl(262, 51%, 44%)
HSVhsv(262, 68%, 67%)
CMYKcmyk(42.7%, 67.8%, 0%, 32.9%)
CIE-LABlab(34.54, 44.66, -55.38)
CIE-LCHlch(34.54, 71.14, 308.88°)
OKLaboklab(45.52% 0.0758 -0.1582)
OKLCHoklch(45.52% 0.175 295.6)
XYZxyz(13.7519, 8.2690, 39.3917)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237AB #80AB37
analogous
#3746AB #6237AB #9C37AB
triadic
#6237AB #AB6237 #37AB62
tetradic
#6237AB #AB3746 #80AB37 #37AB9C
square
#6237AB #AB3746 #80AB37 #37AB9C
split-complementary
#6237AB #AB9C37 #46AB37
monochromatic
#2D194E #47287D #6237AB #8156C9 #A385D8

Accessibility & contrast

On white

7.91
#6237AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6237AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237AB
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237AB#FFFFFF#000000##FFFFFF
##6237AB1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#4F536C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6237ab;
/* rgb */ color: rgb(98, 55, 171);
/* oklch */ color: oklch(45.5% 0.175 295.6);
Tailwind
colors: {
  custom: {
    50: '#9571c5',
    500: '#6237ab',
    950: '#000000',
  },
}
SCSS
$custom: #6237ab;
$custom-light: #9571c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6237ab",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 262.241,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45519,
    "c": 0.17544,
    "h": 295.6
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#6237AB
secondary
#A8C17C
accent
#DB4DA6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6237AB

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

Preview Lab → · Contrast checker → · Palette generator →

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