#6038BA#6038BA

#6038BA is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.192 H 291.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#6038BA
RGBrgb(96, 56, 186)
HSLhsl(258, 54%, 47%)
HSVhsv(258, 70%, 73%)
CMYKcmyk(48.4%, 69.9%, 0%, 27.1%)
CIE-LABlab(35.71, 47.89, -62.37)
CIE-LCHlch(35.71, 78.64, 307.52°)
OKLaboklab(46.68% 0.0695 -0.1788)
OKLCHoklch(46.68% 0.192 291.2)
XYZxyz(15.0985, 8.8597, 47.3594)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038BA #92BA38
analogous
#3851BA #6038BA #A138BA
triadic
#6038BA #BA6038 #38BA60
tetradic
#6038BA #BA3851 #92BA38 #38BAA1
square
#6038BA #BA3851 #92BA38 #38BAA1
split-complementary
#6038BA #BAA138 #51BA38
monochromatic
#2F1C5C #482A8B #6038BA #8260CF #A78FDD

Accessibility & contrast

On white

7.58
#6038BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6038BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038BA
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038BA#FFFFFF#000000##FFFFFF
##6038BA1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6038ba;
/* rgb */ color: rgb(96, 56, 186);
/* oklch */ color: oklch(46.7% 0.192 291.2);
Tailwind
colors: {
  custom: {
    50: '#9572d0',
    500: '#6038ba',
    950: '#000000',
  },
}
SCSS
$custom: #6038ba;
$custom-light: #9572d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6038ba",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 258.462,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46684,
    "c": 0.19188,
    "h": 291.2
  },
  "luminance": 0.0886
}

Semantic roles & 50–950 ramp

primary
#6038BA
secondary
#B4C886
accent
#DD4BB0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6038BA

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

Preview Lab → · Contrast checker → · Palette generator →

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