#6237A5#6237A5

#6237A5 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.168 H 297.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#6237A5
RGBrgb(98, 55, 165)
HSLhsl(263, 50%, 43%)
HSVhsv(263, 67%, 65%)
CMYKcmyk(40.6%, 66.7%, 0%, 35.3%)
CIE-LABlab(34.08, 43.03, -52.53)
CIE-LCHlch(34.08, 67.90, 309.33°)
OKLaboklab(45.04% 0.0766 -0.1498)
OKLCHoklch(45.04% 0.168 297.1)
XYZxyz(13.1930, 8.0454, 36.4479)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6237A5 #7AA537
analogous
#3743A5 #6237A5 #9937A5
triadic
#6237A5 #A56237 #37A562
tetradic
#6237A5 #A53743 #7AA537 #37A599
square
#6237A5 #A53743 #7AA537 #37A599
split-complementary
#6237A5 #A59937 #43A537
monochromatic
#2B1849 #472877 #6237A5 #8053C6 #A281D5

Accessibility & contrast

On white

8.05
#6237A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6237A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6237A5
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6237A5#FFFFFF#000000##FFFFFF
##6237A51.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#515169
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6237a5;
/* rgb */ color: rgb(98, 55, 165);
/* oklch */ color: oklch(45.0% 0.168 297.1);
Tailwind
colors: {
  custom: {
    50: '#9471c0',
    500: '#6237a5',
    950: '#000000',
  },
}
SCSS
$custom: #6237a5;
$custom-light: #9471c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6237a5",
  "rgb": {
    "r": 98,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 263.455,
    "s": 50,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45044,
    "c": 0.16828,
    "h": 297.1
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#6237A5
secondary
#A3BF79
accent
#DA4EA3
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6237A5

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

Preview Lab → · Contrast checker → · Palette generator →

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