#6038B3#6038B3

#6038B3 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.184 H 292.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#6038B3
RGBrgb(96, 56, 179)
HSLhsl(260, 52%, 46%)
HSVhsv(260, 69%, 70%)
CMYKcmyk(46.4%, 68.7%, 0%, 29.8%)
CIE-LABlab(35.14, 45.94, -59.17)
CIE-LCHlch(35.14, 74.91, 307.83°)
OKLaboklab(46.1% 0.0707 -0.1694)
OKLCHoklch(46.1% 0.184 292.7)
XYZxyz(14.3725, 8.5694, 43.5359)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038B3 #8BB338
analogous
#384DB3 #6038B3 #9D38B3
triadic
#6038B3 #B36038 #38B360
tetradic
#6038B3 #B3384D #8BB338 #38B39D
square
#6038B3 #B3384D #8BB338 #38B39D
split-complementary
#6038B3 #B39D38 #4DB338
monochromatic
#2E1B56 #472984 #6038B3 #815CCC #A58BDB

Accessibility & contrast

On white

7.74
#6038B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6038B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038B3
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038B3#FFFFFF#000000##FFFFFF
##6038B31.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#475671
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6038b3;
/* rgb */ color: rgb(96, 56, 179);
/* oklch */ color: oklch(46.1% 0.184 292.7);
Tailwind
colors: {
  custom: {
    50: '#9472cb',
    500: '#6038b3',
    950: '#000000',
  },
}
SCSS
$custom: #6038b3;
$custom-light: #9472cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6038b3",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 259.512,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46099,
    "c": 0.18358,
    "h": 292.7
  },
  "luminance": 0.0857
}

Semantic roles & 50–950 ramp

primary
#6038B3
secondary
#AFC582
accent
#DC4CAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038B3

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

Preview Lab → · Contrast checker → · Palette generator →

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