#6236A2#6236A2

#6236A2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.166 H 298.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#6236A2
RGBrgb(98, 54, 162)
HSLhsl(264, 50%, 42%)
HSVhsv(264, 67%, 64%)
CMYKcmyk(39.5%, 66.7%, 0%, 36.5%)
CIE-LABlab(33.65, 42.77, -51.41)
CIE-LCHlch(33.65, 66.87, 309.76°)
OKLaboklab(44.67% 0.0781 -0.1465)
OKLCHoklch(44.67% 0.166 298.1)
XYZxyz(12.8761, 7.8434, 35.0110)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236A2 #76A236
analogous
#3640A2 #6236A2 #9836A2
triadic
#6236A2 #A26236 #36A262
tetradic
#6236A2 #A23640 #76A236 #36A298
square
#6236A2 #A23640 #76A236 #36A298
split-complementary
#6236A2 #A29836 #40A236
monochromatic
#2A1746 #462774 #6236A2 #8050C5 #A17ED4

Accessibility & contrast

On white

8.18
#6236A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6236A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236A2
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236A2#FFFFFF#000000##FFFFFF
##6236A21.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#534F67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6236a2;
/* rgb */ color: rgb(98, 54, 162);
/* oklch */ color: oklch(44.7% 0.166 298.1);
Tailwind
colors: {
  custom: {
    50: '#9470be',
    500: '#6236a2',
    950: '#000000',
  },
}
SCSS
$custom: #6236a2;
$custom-light: #9470be;
$custom-dark: #000000;
JSON
{
  "hex": "#6236a2",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 264.444,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44669,
    "c": 0.16603,
    "h": 298.1
  },
  "luminance": 0.07844
}

Semantic roles & 50–950 ramp

primary
#6236A2
secondary
#A0BD77
accent
#DA4EA1
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6236A2

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

Preview Lab → · Contrast checker → · Palette generator →

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