#6038B8#6038B8

#6038B8 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.190 H 291.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6038B8
RGBrgb(96, 56, 184)
HSLhsl(259, 53%, 47%)
HSVhsv(259, 70%, 72%)
CMYKcmyk(47.8%, 69.6%, 0%, 27.8%)
CIE-LABlab(35.55, 47.33, -61.46)
CIE-LCHlch(35.55, 77.58, 307.60°)
OKLaboklab(46.52% 0.0699 -0.1762)
OKLCHoklch(46.52% 0.19 291.6)
XYZxyz(14.8873, 8.7753, 46.2475)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038B8 #90B838
analogous
#3850B8 #6038B8 #A038B8
triadic
#6038B8 #B86038 #38B860
tetradic
#6038B8 #B83850 #90B838 #38B8A0
square
#6038B8 #B83850 #90B838 #38B8A0
split-complementary
#6038B8 #B8A038 #50B838
monochromatic
#2F1B5A #482A89 #6038B8 #825FCE #A68EDD

Accessibility & contrast

On white

7.62
#6038B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6038B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038B8
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038B8#FFFFFF#000000##FFFFFF
##6038B81.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#445874
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6038b8;
/* rgb */ color: rgb(96, 56, 184);
/* oklch */ color: oklch(46.5% 0.190 291.6);
Tailwind
colors: {
  custom: {
    50: '#9572ce',
    500: '#6038b8',
    950: '#000000',
  },
}
SCSS
$custom: #6038b8;
$custom-light: #9572ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6038b8",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 258.75,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46516,
    "c": 0.18951,
    "h": 291.6
  },
  "luminance": 0.08776
}

Semantic roles & 50–950 ramp

primary
#6038B8
secondary
#B2C785
accent
#DD4BAF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6038B8

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

Preview Lab → · Contrast checker → · Palette generator →

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