#6038D7#6038D7

#6038D7 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.225 H 286.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#6038D7
RGBrgb(96, 56, 215)
HSLhsl(255, 67%, 53%)
HSVhsv(255, 74%, 84%)
CMYKcmyk(55.3%, 74%, 0%, 15.7%)
CIE-LABlab(38.24, 55.99, -75.13)
CIE-LCHlch(38.24, 93.70, 306.70°)
OKLaboklab(49.25% 0.0632 -0.2162)
OKLCHoklch(49.25% 0.225 286.3)
XYZxyz(18.5001, 10.2204, 65.2747)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038D7 #AFD738
analogous
#3860D7 #6038D7 #AF38D7
triadic
#6038D7 #D76038 #38D760
tetradic
#6038D7 #D73860 #AFD738 #38D7AF
square
#6038D7 #D73860 #AFD738 #38D7AF
split-complementary
#6038D7 #D7AF38 #60D738
monochromatic
#32197C #4623AF #6038D7 #896BE1 #B19EEB

Accessibility & contrast

On white

6.90
#6038D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6038D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6038D7
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038D7#FFFFFF#000000##FFFFFF
##6038D71.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#0055D4
Tritanopia (blue-blind)
#296485
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6038d7;
/* rgb */ color: rgb(96, 56, 215);
/* oklch */ color: oklch(49.2% 0.225 286.3);
Tailwind
colors: {
  custom: {
    50: '#9973e5',
    500: '#6038d7',
    950: '#000000',
  },
}
SCSS
$custom: #6038d7;
$custom-light: #9973e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6038d7",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 255.094,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49245,
    "c": 0.2253,
    "h": 286.3
  },
  "luminance": 0.10221
}

Semantic roles & 50–950 ramp

primary
#6038D7
secondary
#C6D893
accent
#E93EBE
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6038D7

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

Preview Lab → · Contrast checker → · Palette generator →

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