#6236B2#6236B2

#6236B2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.185 H 294.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6236B2
RGBrgb(98, 54, 178)
HSLhsl(261, 53%, 45%)
HSVhsv(261, 70%, 70%)
CMYKcmyk(44.9%, 69.7%, 0%, 30.2%)
CIE-LABlab(34.90, 47.09, -58.96)
CIE-LCHlch(34.90, 75.45, 308.61°)
OKLaboklab(45.95% 0.0757 -0.1687)
OKLCHoklch(45.95% 0.185 294.2)
XYZxyz(14.3899, 8.4490, 42.9835)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236B2 #86B236
analogous
#3648B2 #6236B2 #A036B2
triadic
#6236B2 #B26236 #36B262
tetradic
#6236B2 #B23648 #86B236 #36B2A0
square
#6236B2 #B23648 #86B236 #36B2A0
split-complementary
#6236B2 #B2A036 #48B236
monochromatic
#2E1A54 #482883 #6236B2 #8259CD #A588DB

Accessibility & contrast

On white

7.81
#6236B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6236B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6236B2#FFFFFF#000000##FFFFFF
##6236B21.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#4B5570
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6236b2;
/* rgb */ color: rgb(98, 54, 178);
/* oklch */ color: oklch(46.0% 0.185 294.2);
Tailwind
colors: {
  custom: {
    50: '#9670ca',
    500: '#6236b2',
    950: '#000000',
  },
}
SCSS
$custom: #6236b2;
$custom-light: #9670ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6236b2",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 261.29,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45952,
    "c": 0.18495,
    "h": 294.2
  },
  "luminance": 0.08449
}

Semantic roles & 50–950 ramp

primary
#6236B2
secondary
#ACC57F
accent
#DD4BA9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6236B2

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

Preview Lab → · Contrast checker → · Palette generator →

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