#6038B5#6038B5

#6038B5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.186 H 292.2°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#6038B5
RGBrgb(96, 56, 181)
HSLhsl(259, 53%, 46%)
HSVhsv(259, 69%, 71%)
CMYKcmyk(47%, 69.1%, 0%, 29%)
CIE-LABlab(35.30, 46.50, -60.09)
CIE-LCHlch(35.30, 75.98, 307.73°)
OKLaboklab(46.27% 0.0704 -0.1721)
OKLCHoklch(46.27% 0.186 292.2)
XYZxyz(14.5762, 8.6508, 44.6089)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038B5 #8DB538
analogous
#384FB5 #6038B5 #9F38B5
triadic
#6038B5 #B56038 #38B560
tetradic
#6038B5 #B5384F #8DB538 #38B59F
square
#6038B5 #B5384F #8DB538 #38B59F
split-complementary
#6038B5 #B59F38 #4FB538
monochromatic
#2E1B58 #472A86 #6038B5 #815DCD #A58CDB

Accessibility & contrast

On white

7.69
#6038B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6038B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038B5
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038B5#FFFFFF#000000##FFFFFF
##6038B51.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#465772
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6038b5;
/* rgb */ color: rgb(96, 56, 181);
/* oklch */ color: oklch(46.3% 0.186 292.2);
Tailwind
colors: {
  custom: {
    50: '#9572cc',
    500: '#6038b5',
    950: '#000000',
  },
}
SCSS
$custom: #6038b5;
$custom-light: #9572cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6038b5",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 259.2,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46265,
    "c": 0.18596,
    "h": 292.2
  },
  "luminance": 0.08651
}

Semantic roles & 50–950 ramp

primary
#6038B5
secondary
#B0C683
accent
#DC4CAE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038B5

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

Preview Lab → · Contrast checker → · Palette generator →

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