#6038C4#6038C4

#6038C4 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.5% C 0.204 H 289.4°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#6038C4
RGBrgb(96, 56, 196)
HSLhsl(257, 56%, 49%)
HSVhsv(257, 71%, 77%)
CMYKcmyk(51%, 71.4%, 0%, 23.1%)
CIE-LABlab(36.56, 50.69, -66.87)
CIE-LCHlch(36.56, 83.91, 307.16°)
OKLaboklab(47.54% 0.0675 -0.192)
OKLCHoklch(47.54% 0.204 289.4)
XYZxyz(16.1990, 9.2999, 53.1554)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038C4 #9CC438
analogous
#3856C4 #6038C4 #A638C4
triadic
#6038C4 #C46038 #38C460
tetradic
#6038C4 #C43856 #9CC438 #38C4A6
square
#6038C4 #C43856 #9CC438 #38C4A6
split-complementary
#6038C4 #C4A638 #56C438
monochromatic
#311D65 #492A94 #6038C4 #8566D3 #AB96E1

Accessibility & contrast

On white

7.34
#6038C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6038C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038C4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038C4#FFFFFF#000000##FFFFFF
##6038C41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#3C5D7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6038c4;
/* rgb */ color: rgb(96, 56, 196);
/* oklch */ color: oklch(47.5% 0.204 289.4);
Tailwind
colors: {
  custom: {
    50: '#9772d7',
    500: '#6038c4',
    950: '#000000',
  },
}
SCSS
$custom: #6038c4;
$custom-light: #9772d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6038c4",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 257.143,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47544,
    "c": 0.20356,
    "h": 289.4
  },
  "luminance": 0.09301
}

Semantic roles & 50–950 ramp

primary
#6038C4
secondary
#BACC8C
accent
#DF49B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #6038C4

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

Preview Lab → · Contrast checker → · Palette generator →

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