#6236AC#6236AC

#6236AC is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.178 H 295.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#6236AC
RGBrgb(98, 54, 172)
HSLhsl(262, 52%, 44%)
HSVhsv(262, 69%, 67%)
CMYKcmyk(43%, 68.6%, 0%, 32.5%)
CIE-LABlab(34.42, 45.46, -56.16)
CIE-LCHlch(34.42, 72.25, 308.99°)
OKLaboklab(45.46% 0.0767 -0.1605)
OKLCHoklch(45.46% 0.178 295.5)
XYZxyz(13.8006, 8.2132, 39.8799)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236AC #80AC36
analogous
#3645AC #6236AC #9D36AC
triadic
#6236AC #AC6236 #36AC62
tetradic
#6236AC #AC3645 #80AC36 #36AC9D
square
#6236AC #AC3645 #80AC36 #36AC9D
split-complementary
#6236AC #AC9D36 #45AC36
monochromatic
#2D194F #47277D #6236AC #8155CA #A384D8

Accessibility & contrast

On white

7.95
#6236AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6236AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6236AC#FFFFFF#000000##FFFFFF
##6236AC1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6236ac;
/* rgb */ color: rgb(98, 54, 172);
/* oklch */ color: oklch(45.5% 0.178 295.5);
Tailwind
colors: {
  custom: {
    50: '#9570c6',
    500: '#6236ac',
    950: '#000000',
  },
}
SCSS
$custom: #6236ac;
$custom-light: #9570c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6236ac",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 172
  },
  "hsl": {
    "h": 262.373,
    "s": 52.212,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45462,
    "c": 0.1779,
    "h": 295.5
  },
  "luminance": 0.08214
}

Semantic roles & 50–950 ramp

primary
#6236AC
secondary
#A8C27C
accent
#DC4CA6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6236AC

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

Preview Lab → · Contrast checker → · Palette generator →

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