#6038AE#6038AE

#6038AE is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.178 H 293.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#6038AE
RGBrgb(96, 56, 174)
HSLhsl(260, 51%, 45%)
HSVhsv(260, 68%, 68%)
CMYKcmyk(44.8%, 67.8%, 0%, 31.8%)
CIE-LABlab(34.74, 44.55, -56.84)
CIE-LCHlch(34.74, 72.22, 308.09°)
OKLaboklab(45.69% 0.0715 -0.1626)
OKLCHoklch(45.69% 0.178 293.7)
XYZxyz(13.8759, 8.3707, 40.9208)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038AE #86AE38
analogous
#384BAE #6038AE #9B38AE
triadic
#6038AE #AE6038 #38AE60
tetradic
#6038AE #AE384B #86AE38 #38AE9B
square
#6038AE #AE384B #86AE38 #38AE9B
split-complementary
#6038AE #AE9B38 #4BAE38
monochromatic
#2D1A51 #462980 #6038AE #8059CA #A388D9

Accessibility & contrast

On white

7.85
#6038AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6038AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038AE
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038AE#FFFFFF#000000##FFFFFF
##6038AE1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#4A556E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6038ae;
/* rgb */ color: rgb(96, 56, 174);
/* oklch */ color: oklch(45.7% 0.178 293.7);
Tailwind
colors: {
  custom: {
    50: '#9471c7',
    500: '#6038ae',
    950: '#000000',
  },
}
SCSS
$custom: #6038ae;
$custom-light: #9471c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6038ae",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 260.339,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45689,
    "c": 0.1776,
    "h": 293.7
  },
  "luminance": 0.08371
}

Semantic roles & 50–950 ramp

primary
#6038AE
secondary
#ACC37F
accent
#DB4DAB
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038AE

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

Preview Lab → · Contrast checker → · Palette generator →

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