#6236BA#6236BA

#6236BA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.194 H 292.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6236BA
RGBrgb(98, 54, 186)
HSLhsl(260, 55%, 47%)
HSVhsv(260, 71%, 73%)
CMYKcmyk(47.3%, 71%, 0%, 27.1%)
CIE-LABlab(35.56, 49.27, -62.62)
CIE-LCHlch(35.56, 79.68, 308.19°)
OKLaboklab(46.62% 0.0742 -0.1795)
OKLCHoklch(46.62% 0.194 292.5)
XYZxyz(15.2166, 8.7797, 47.3377)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236BA #8EBA36
analogous
#364CBA #6236BA #A436BA
triadic
#6236BA #BA6236 #36BA62
tetradic
#6236BA #BA364C #8EBA36 #36BAA4
square
#6236BA #BA364C #8EBA36 #36BAA4
split-complementary
#6236BA #BAA436 #4CBA36
monochromatic
#301A5B #49288B #6236BA #835DD0 #A88DDE

Accessibility & contrast

On white

7.62
#6236BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6236BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236BA
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236BA#FFFFFF#000000##FFFFFF
##6236BA1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#475874
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6236ba;
/* rgb */ color: rgb(98, 54, 186);
/* oklch */ color: oklch(46.6% 0.194 292.5);
Tailwind
colors: {
  custom: {
    50: '#9771d0',
    500: '#6236ba',
    950: '#000000',
  },
}
SCSS
$custom: #6236ba;
$custom-light: #9771d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6236ba",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 260,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46623,
    "c": 0.19424,
    "h": 292.5
  },
  "luminance": 0.0878
}

Semantic roles & 50–950 ramp

primary
#6236BA
secondary
#B1C884
accent
#DE49AD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6236BA

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

Preview Lab → · Contrast checker → · Palette generator →

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