#6038C5#6038C5

#6038C5 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.6% C 0.205 H 289.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#6038C5
RGBrgb(96, 56, 197)
HSLhsl(257, 56%, 50%)
HSVhsv(257, 72%, 77%)
CMYKcmyk(51.3%, 71.6%, 0%, 22.7%)
CIE-LABlab(36.64, 50.96, -67.31)
CIE-LCHlch(36.64, 84.43, 307.13°)
OKLaboklab(47.63% 0.0673 -0.1933)
OKLCHoklch(47.63% 0.205 289.2)
XYZxyz(16.3132, 9.3456, 53.7568)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038C5 #9DC538
analogous
#3857C5 #6038C5 #A638C5
triadic
#6038C5 #C56038 #38C560
tetradic
#6038C5 #C53857 #9DC538 #38C5A6
square
#6038C5 #C53857 #9DC538 #38C5A6
split-complementary
#6038C5 #C5A638 #57C538
monochromatic
#321D66 #492A95 #6038C5 #8567D4 #AB96E1

Accessibility & contrast

On white

7.32
#6038C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6038C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038C5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038C5#FFFFFF#000000##FFFFFF
##6038C51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#0053C2
Tritanopia (blue-blind)
#3B5D7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6038c5;
/* rgb */ color: rgb(96, 56, 197);
/* oklch */ color: oklch(47.6% 0.205 289.2);
Tailwind
colors: {
  custom: {
    50: '#9772d8',
    500: '#6038c5',
    950: '#000000',
  },
}
SCSS
$custom: #6038c5;
$custom-light: #9772d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6038c5",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 257.021,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47632,
    "c": 0.20472,
    "h": 289.2
  },
  "luminance": 0.09346
}

Semantic roles & 50–950 ramp

primary
#6038C5
secondary
#BACD8C
accent
#DF49B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6038C5

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

Preview Lab → · Contrast checker → · Palette generator →

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