#6038C3#6038C3

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

Color values

HEX#6038C3
RGBrgb(96, 56, 195)
HSLhsl(257, 55%, 49%)
HSVhsv(257, 71%, 76%)
CMYKcmyk(50.8%, 71.3%, 0%, 23.5%)
CIE-LABlab(36.47, 50.40, -66.42)
CIE-LCHlch(36.47, 83.38, 307.19°)
OKLaboklab(47.46% 0.0678 -0.1907)
OKLCHoklch(47.46% 0.202 289.6)
XYZxyz(16.0855, 9.2546, 52.5579)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038C3 #9BC338
analogous
#3856C3 #6038C3 #A638C3
triadic
#6038C3 #C36038 #38C360
tetradic
#6038C3 #C33856 #9BC338 #38C3A6
square
#6038C3 #C33856 #9BC338 #38C3A6
split-complementary
#6038C3 #C3A638 #56C338
monochromatic
#311D64 #492A93 #6038C3 #8565D3 #AB95E1

Accessibility & contrast

On white

7.37
#6038C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6038C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038C3
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038C3#FFFFFF#000000##FFFFFF
##6038C31.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#3D5C7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6038c3;
/* rgb */ color: rgb(96, 56, 195);
/* oklch */ color: oklch(47.5% 0.202 289.6);
Tailwind
colors: {
  custom: {
    50: '#9672d6',
    500: '#6038c3',
    950: '#000000',
  },
}
SCSS
$custom: #6038c3;
$custom-light: #9672d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6038c3",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 257.266,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47457,
    "c": 0.20241,
    "h": 289.6
  },
  "luminance": 0.09255
}

Semantic roles & 50–950 ramp

primary
#6038C3
secondary
#B9CC8B
accent
#DF49B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6038C3

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

Preview Lab → · Contrast checker → · Palette generator →

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