#6038BC#6038BC

#6038BC is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.194 H 290.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#6038BC
RGBrgb(96, 56, 188)
HSLhsl(258, 54%, 48%)
HSVhsv(258, 70%, 74%)
CMYKcmyk(48.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(35.88, 48.45, -63.28)
CIE-LCHlch(35.88, 79.70, 307.44°)
OKLaboklab(46.85% 0.0691 -0.1815)
OKLCHoklch(46.85% 0.194 290.8)
XYZxyz(15.3126, 8.9454, 48.4870)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038BC #94BC38
analogous
#3852BC #6038BC #A238BC
triadic
#6038BC #BC6038 #38BC60
tetradic
#6038BC #BC3852 #94BC38 #38BCA2
square
#6038BC #BC3852 #94BC38 #38BCA2
split-complementary
#6038BC #BCA238 #52BC38
monochromatic
#301C5E #482A8D #6038BC #8361D0 #A890DE

Accessibility & contrast

On white

7.53
#6038BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6038BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038BC
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038BC#FFFFFF#000000##FFFFFF
##6038BC1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#425A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6038bc;
/* rgb */ color: rgb(96, 56, 188);
/* oklch */ color: oklch(46.9% 0.194 290.8);
Tailwind
colors: {
  custom: {
    50: '#9572d1',
    500: '#6038bc',
    950: '#000000',
  },
}
SCSS
$custom: #6038bc;
$custom-light: #9572d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6038bc",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 258.182,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46854,
    "c": 0.19423,
    "h": 290.8
  },
  "luminance": 0.08946
}

Semantic roles & 50–950 ramp

primary
#6038BC
secondary
#B5C987
accent
#DD4AB1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6038BC

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

Preview Lab → · Contrast checker → · Palette generator →

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