#6236A6#6236A6

#6236A6 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.171 H 297.0°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#6236A6
RGBrgb(98, 54, 166)
HSLhsl(264, 51%, 43%)
HSVhsv(264, 67%, 65%)
CMYKcmyk(41%, 67.5%, 0%, 34.9%)
CIE-LABlab(33.96, 43.84, -53.32)
CIE-LCHlch(33.96, 69.03, 309.43°)
OKLaboklab(44.98% 0.0776 -0.1522)
OKLCHoklch(44.98% 0.171 297)
XYZxyz(13.2373, 7.9879, 36.9134)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236A6 #7AA636
analogous
#3642A6 #6236A6 #9A36A6
triadic
#6236A6 #A66236 #36A662
tetradic
#6236A6 #A63642 #7AA636 #36A69A
square
#6236A6 #A63642 #7AA636 #36A69A
split-complementary
#6236A6 #A69A36 #42A636
monochromatic
#2B184A #472778 #6236A6 #8052C7 #A281D6

Accessibility & contrast

On white

8.08
#6236A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6236A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236A6
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236A6#FFFFFF#000000##FFFFFF
##6236A61.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#515069
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6236a6;
/* rgb */ color: rgb(98, 54, 166);
/* oklch */ color: oklch(45.0% 0.171 297.0);
Tailwind
colors: {
  custom: {
    50: '#9470c1',
    500: '#6236a6',
    950: '#000000',
  },
}
SCSS
$custom: #6236a6;
$custom-light: #9470c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6236a6",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 166
  },
  "hsl": {
    "h": 263.571,
    "s": 50.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44982,
    "c": 0.1708,
    "h": 297
  },
  "luminance": 0.07988
}

Semantic roles & 50–950 ramp

primary
#6236A6
secondary
#A3BF79
accent
#DA4DA3
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6236A6

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

Preview Lab → · Contrast checker → · Palette generator →

#6236A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva