#6038D5#6038D5

#6038D5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.223 H 286.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6038D5
RGBrgb(96, 56, 213)
HSLhsl(255, 65%, 53%)
HSVhsv(255, 74%, 84%)
CMYKcmyk(54.9%, 73.7%, 0%, 16.5%)
CIE-LABlab(38.05, 55.44, -74.28)
CIE-LCHlch(38.05, 92.68, 306.74°)
OKLaboklab(49.06% 0.0637 -0.2137)
OKLCHoklch(49.06% 0.223 286.6)
XYZxyz(18.2447, 10.1182, 63.9295)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038D5 #ADD538
analogous
#385ED5 #6038D5 #AF38D5
triadic
#6038D5 #D56038 #38D560
tetradic
#6038D5 #D5385E #ADD538 #38D5AF
square
#6038D5 #D5385E #ADD538 #38D5AF
split-complementary
#6038D5 #D5AF38 #5ED538
monochromatic
#321A79 #4724AC #6038D5 #886BE0 #B19DEA

Accessibility & contrast

On white

6.94
#6038D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6038D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6038D5
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038D5#FFFFFF#000000##FFFFFF
##6038D51.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDA
Deuteranopia (green-blind)
#0055D2
Tritanopia (blue-blind)
#2C6384
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6038d5;
/* rgb */ color: rgb(96, 56, 213);
/* oklch */ color: oklch(49.1% 0.223 286.6);
Tailwind
colors: {
  custom: {
    50: '#9973e3',
    500: '#6038d5',
    950: '#000000',
  },
}
SCSS
$custom: #6038d5;
$custom-light: #9973e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6038d5",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 255.287,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49062,
    "c": 0.22304,
    "h": 286.6
  },
  "luminance": 0.10119
}

Semantic roles & 50–950 ramp

primary
#6038D5
secondary
#C5D692
accent
#E840BD
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6038D5

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

Preview Lab → · Contrast checker → · Palette generator →

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