#6236AD#6236AD

#6236AD is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.179 H 295.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#6236AD
RGBrgb(98, 54, 173)
HSLhsl(262, 52%, 45%)
HSVhsv(262, 69%, 68%)
CMYKcmyk(43.4%, 68.8%, 0%, 32.2%)
CIE-LABlab(34.50, 45.73, -56.63)
CIE-LCHlch(34.50, 72.79, 308.92°)
OKLaboklab(45.54% 0.0766 -0.1619)
OKLCHoklch(45.54% 0.179 295.3)
XYZxyz(13.8970, 8.2518, 40.3876)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236AD #81AD36
analogous
#3645AD #6236AD #9E36AD
triadic
#6236AD #AD6236 #36AD62
tetradic
#6236AD #AD3645 #81AD36 #36AD9E
square
#6236AD #AD3645 #81AD36 #36AD9E
split-complementary
#6236AD #AD9E36 #45AD36
monochromatic
#2D1950 #48277E #6236AD #8156CA #A485D9

Accessibility & contrast

On white

7.92
#6236AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6236AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6236AD#FFFFFF#000000##FFFFFF
##6236AD1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#4E536D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6236ad;
/* rgb */ color: rgb(98, 54, 173);
/* oklch */ color: oklch(45.5% 0.179 295.3);
Tailwind
colors: {
  custom: {
    50: '#9570c6',
    500: '#6236ad',
    950: '#000000',
  },
}
SCSS
$custom: #6236ad;
$custom-light: #9570c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6236ad",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 173
  },
  "hsl": {
    "h": 262.185,
    "s": 52.423,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45543,
    "c": 0.17908,
    "h": 295.3
  },
  "luminance": 0.08252
}

Semantic roles & 50–950 ramp

primary
#6236AD
secondary
#A9C27C
accent
#DC4CA7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6236AD

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

Preview Lab → · Contrast checker → · Palette generator →

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