#6038C2#6038C2

#6038C2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.201 H 289.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#6038C2
RGBrgb(96, 56, 194)
HSLhsl(257, 55%, 49%)
HSVhsv(257, 71%, 76%)
CMYKcmyk(50.5%, 71.1%, 0%, 23.9%)
CIE-LABlab(36.38, 50.13, -65.98)
CIE-LCHlch(36.38, 82.86, 307.23°)
OKLaboklab(47.37% 0.068 -0.1894)
OKLCHoklch(47.37% 0.201 289.7)
XYZxyz(15.9728, 9.2095, 51.9645)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038C2 #9AC238
analogous
#3855C2 #6038C2 #A538C2
triadic
#6038C2 #C26038 #38C260
tetradic
#6038C2 #C23855 #9AC238 #38C2A5
square
#6038C2 #C23855 #9AC238 #38C2A5
split-complementary
#6038C2 #C2A538 #55C238
monochromatic
#311D63 #482A93 #6038C2 #8565D2 #AA94E0

Accessibility & contrast

On white

7.39
#6038C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6038C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038C2
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038C2#FFFFFF#000000##FFFFFF
##6038C21.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#3D5C79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6038c2;
/* rgb */ color: rgb(96, 56, 194);
/* oklch */ color: oklch(47.4% 0.201 289.7);
Tailwind
colors: {
  custom: {
    50: '#9672d6',
    500: '#6038c2',
    950: '#000000',
  },
}
SCSS
$custom: #6038c2;
$custom-light: #9672d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6038c2",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 257.391,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4737,
    "c": 0.20124,
    "h": 289.7
  },
  "luminance": 0.0921
}

Semantic roles & 50–950 ramp

primary
#6038C2
secondary
#B9CB8A
accent
#DF49B3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6038C2

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

Preview Lab → · Contrast checker → · Palette generator →

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