#6038D4#6038D4

#6038D4 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.222 H 286.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#6038D4
RGBrgb(96, 56, 212)
HSLhsl(255, 64%, 53%)
HSVhsv(255, 74%, 83%)
CMYKcmyk(54.7%, 73.6%, 0%, 16.9%)
CIE-LABlab(37.96, 55.16, -73.85)
CIE-LCHlch(37.96, 92.17, 306.76°)
OKLaboklab(48.97% 0.064 -0.2125)
OKLCHoklch(48.97% 0.222 286.8)
XYZxyz(18.1182, 10.0676, 63.2631)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038D4 #ACD438
analogous
#385ED4 #6038D4 #AE38D4
triadic
#6038D4 #D46038 #38D460
tetradic
#6038D4 #D4385E #ACD438 #38D4AE
square
#6038D4 #D4385E #ACD438 #38D4AE
split-complementary
#6038D4 #D4AE38 #5ED438
monochromatic
#321A78 #4725AA #6038D4 #886ADF #B09DEA

Accessibility & contrast

On white

6.97
#6038D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6038D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6038D4
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038D4#FFFFFF#000000##FFFFFF
##6038D41.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD8
Deuteranopia (green-blind)
#0055D1
Tritanopia (blue-blind)
#2D6383
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6038d4;
/* rgb */ color: rgb(96, 56, 212);
/* oklch */ color: oklch(49.0% 0.222 286.8);
Tailwind
colors: {
  custom: {
    50: '#9973e2',
    500: '#6038d4',
    950: '#000000',
  },
}
SCSS
$custom: #6038d4;
$custom-light: #9973e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6038d4",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 255.385,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48971,
    "c": 0.22191,
    "h": 286.8
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#6038D4
secondary
#C4D692
accent
#E740BD
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6038D4

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

Preview Lab → · Contrast checker → · Palette generator →

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