#6236AA#6236AA

#6236AA is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.176 H 296.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#6236AA
RGBrgb(98, 54, 170)
HSLhsl(263, 52%, 44%)
HSVhsv(263, 68%, 67%)
CMYKcmyk(42.4%, 68.2%, 0%, 33.3%)
CIE-LABlab(34.27, 44.92, -55.22)
CIE-LCHlch(34.27, 71.18, 309.13°)
OKLaboklab(45.3% 0.077 -0.1577)
OKLCHoklch(45.3% 0.176 296)
XYZxyz(13.6100, 8.1370, 38.8759)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236AA #7EAA36
analogous
#3644AA #6236AA #9C36AA
triadic
#6236AA #AA6236 #36AA62
tetradic
#6236AA #AA3644 #7EAA36 #36AA9C
square
#6236AA #AA3644 #7EAA36 #36AA9C
split-complementary
#6236AA #AA9C36 #44AA36
monochromatic
#2C184D #47277C #6236AA #8154C9 #A383D8

Accessibility & contrast

On white

7.99
#6236AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6236AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6236AA#FFFFFF#000000##FFFFFF
##6236AA1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#4F526B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6236aa;
/* rgb */ color: rgb(98, 54, 170);
/* oklch */ color: oklch(45.3% 0.176 296.0);
Tailwind
colors: {
  custom: {
    50: '#9570c4',
    500: '#6236aa',
    950: '#000000',
  },
}
SCSS
$custom: #6236aa;
$custom-light: #9570c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6236aa",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 170
  },
  "hsl": {
    "h": 262.759,
    "s": 51.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.453,
    "c": 0.17553,
    "h": 296
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#6236AA
secondary
#A6C17B
accent
#DB4DA5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6236AA

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

Preview Lab → · Contrast checker → · Palette generator →

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