#6236B4#6236B4

#6236B4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.187 H 293.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#6236B4
RGBrgb(98, 54, 180)
HSLhsl(261, 54%, 46%)
HSVhsv(261, 70%, 71%)
CMYKcmyk(45.6%, 70%, 0%, 29.4%)
CIE-LABlab(35.06, 47.63, -59.88)
CIE-LCHlch(35.06, 76.51, 308.50°)
OKLaboklab(46.12% 0.0754 -0.1714)
OKLCHoklch(46.12% 0.187 293.7)
XYZxyz(14.5921, 8.5299, 44.0488)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236B4 #88B436
analogous
#3649B4 #6236B4 #A136B4
triadic
#6236B4 #B46236 #36B462
tetradic
#6236B4 #B43649 #88B436 #36B4A1
square
#6236B4 #B43649 #88B436 #36B4A1
split-complementary
#6236B4 #B4A136 #49B436
monochromatic
#2F1A56 #482885 #6236B4 #825ACD #A689DC

Accessibility & contrast

On white

7.76
#6236B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6236B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6236B4#FFFFFF#000000##FFFFFF
##6236B41.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#4A5671
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6236b4;
/* rgb */ color: rgb(98, 54, 180);
/* oklch */ color: oklch(46.1% 0.187 293.7);
Tailwind
colors: {
  custom: {
    50: '#9670cb',
    500: '#6236b4',
    950: '#000000',
  },
}
SCSS
$custom: #6236b4;
$custom-light: #9670cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6236b4",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 180
  },
  "hsl": {
    "h": 260.952,
    "s": 53.846,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46118,
    "c": 0.18728,
    "h": 293.7
  },
  "luminance": 0.0853
}

Semantic roles & 50–950 ramp

primary
#6236B4
secondary
#ADC680
accent
#DD4BAA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6236B4

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

Preview Lab → · Contrast checker → · Palette generator →

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