#6236A8#6236A8

#6236A8 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.1% C 0.173 H 296.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#6236A8
RGBrgb(98, 54, 168)
HSLhsl(263, 51%, 44%)
HSVhsv(263, 68%, 66%)
CMYKcmyk(41.7%, 67.9%, 0%, 34.1%)
CIE-LABlab(34.11, 44.38, -54.27)
CIE-LCHlch(34.11, 70.11, 309.27°)
OKLaboklab(45.14% 0.0773 -0.155)
OKLCHoklch(45.14% 0.173 296.5)
XYZxyz(13.4222, 8.0619, 37.8871)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236A8 #7CA836
analogous
#3643A8 #6236A8 #9B36A8
triadic
#6236A8 #A86236 #36A862
tetradic
#6236A8 #A83643 #7CA836 #36A89B
square
#6236A8 #A83643 #7CA836 #36A89B
split-complementary
#6236A8 #A89B36 #43A836
monochromatic
#2C184B #47277A #6236A8 #8053C8 #A382D7

Accessibility & contrast

On white

8.04
#6236A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6236A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6236A8#FFFFFF#000000##FFFFFF
##6236A81.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#50516A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6236a8;
/* rgb */ color: rgb(98, 54, 168);
/* oklch */ color: oklch(45.1% 0.173 296.5);
Tailwind
colors: {
  custom: {
    50: '#9470c3',
    500: '#6236a8',
    950: '#000000',
  },
}
SCSS
$custom: #6236a8;
$custom-light: #9470c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6236a8",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 168
  },
  "hsl": {
    "h": 263.158,
    "s": 51.351,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45141,
    "c": 0.17317,
    "h": 296.5
  },
  "luminance": 0.08062
}

Semantic roles & 50–950 ramp

primary
#6236A8
secondary
#A5C07A
accent
#DB4DA4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6236A8

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

Preview Lab → · Contrast checker → · Palette generator →

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