#6038BD#6038BD

#6038BD is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.195 H 290.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#6038BD
RGBrgb(96, 56, 189)
HSLhsl(258, 54%, 48%)
HSVhsv(258, 70%, 74%)
CMYKcmyk(49.2%, 70.4%, 0%, 25.9%)
CIE-LABlab(35.96, 48.73, -63.73)
CIE-LCHlch(35.96, 80.23, 307.40°)
OKLaboklab(46.94% 0.0689 -0.1828)
OKLCHoklch(46.94% 0.195 290.7)
XYZxyz(15.4207, 8.9887, 49.0567)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038BD #95BD38
analogous
#3852BD #6038BD #A238BD
triadic
#6038BD #BD6038 #38BD60
tetradic
#6038BD #BD3852 #95BD38 #38BDA2
square
#6038BD #BD3852 #95BD38 #38BDA2
split-complementary
#6038BD #BDA238 #52BD38
monochromatic
#301C5F #482A8E #6038BD #8362D0 #A891DE

Accessibility & contrast

On white

7.51
#6038BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6038BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038BD
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038BD#FFFFFF#000000##FFFFFF
##6038BD1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#415A76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6038bd;
/* rgb */ color: rgb(96, 56, 189);
/* oklch */ color: oklch(46.9% 0.195 290.7);
Tailwind
colors: {
  custom: {
    50: '#9672d2',
    500: '#6038bd',
    950: '#000000',
  },
}
SCSS
$custom: #6038bd;
$custom-light: #9672d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6038bd",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 258.045,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4694,
    "c": 0.19539,
    "h": 290.7
  },
  "luminance": 0.08989
}

Semantic roles & 50–950 ramp

primary
#6038BD
secondary
#B6C987
accent
#DE4AB1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6038BD

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

Preview Lab → · Contrast checker → · Palette generator →

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