#6038BF#6038BF

#6038BF is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.1% C 0.198 H 290.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#6038BF
RGBrgb(96, 56, 191)
HSLhsl(258, 55%, 48%)
HSVhsv(258, 71%, 75%)
CMYKcmyk(49.7%, 70.7%, 0%, 25.1%)
CIE-LABlab(36.13, 49.29, -64.63)
CIE-LCHlch(36.13, 81.28, 307.33°)
OKLaboklab(47.11% 0.0686 -0.1855)
OKLCHoklch(47.11% 0.198 290.3)
XYZxyz(15.6393, 9.0761, 50.2079)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038BF #97BF38
analogous
#3853BF #6038BF #A338BF
triadic
#6038BF #BF6038 #38BF60
tetradic
#6038BF #BF3853 #97BF38 #38BFA3
square
#6038BF #BF3853 #97BF38 #38BFA3
split-complementary
#6038BF #BFA338 #53BF38
monochromatic
#301C60 #482A90 #6038BF #8463D1 #A992DF

Accessibility & contrast

On white

7.46
#6038BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6038BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038BF
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038BF#FFFFFF#000000##FFFFFF
##6038BF1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0052BC
Tritanopia (blue-blind)
#405B78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6038bf;
/* rgb */ color: rgb(96, 56, 191);
/* oklch */ color: oklch(47.1% 0.198 290.3);
Tailwind
colors: {
  custom: {
    50: '#9672d3',
    500: '#6038bf',
    950: '#000000',
  },
}
SCSS
$custom: #6038bf;
$custom-light: #9672d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6038bf",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 257.778,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47111,
    "c": 0.19774,
    "h": 290.3
  },
  "luminance": 0.09077
}

Semantic roles & 50–950 ramp

primary
#6038BF
secondary
#B7CA89
accent
#DE4AB2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6038BF

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

Preview Lab → · Contrast checker → · Palette generator →

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