#6038B6#6038B6

#6038B6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.187 H 292.0°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#6038B6
RGBrgb(96, 56, 182)
HSLhsl(259, 53%, 47%)
HSVhsv(259, 69%, 71%)
CMYKcmyk(47.3%, 69.2%, 0%, 28.6%)
CIE-LABlab(35.38, 46.78, -60.55)
CIE-LCHlch(35.38, 76.51, 307.69°)
OKLaboklab(46.35% 0.0702 -0.1735)
OKLCHoklch(46.35% 0.187 292)
XYZxyz(14.6792, 8.6920, 45.1512)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038B6 #8EB638
analogous
#384FB6 #6038B6 #9F38B6
triadic
#6038B6 #B66038 #38B660
tetradic
#6038B6 #B6384F #8EB638 #38B69F
square
#6038B6 #B6384F #8EB638 #38B69F
split-complementary
#6038B6 #B69F38 #4FB638
monochromatic
#2F1B58 #472A87 #6038B6 #815ECD #A68DDC

Accessibility & contrast

On white

7.67
#6038B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6038B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038B6
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038B6#FFFFFF#000000##FFFFFF
##6038B61.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#455873
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6038b6;
/* rgb */ color: rgb(96, 56, 182);
/* oklch */ color: oklch(46.3% 0.187 292.0);
Tailwind
colors: {
  custom: {
    50: '#9572cd',
    500: '#6038b6',
    950: '#000000',
  },
}
SCSS
$custom: #6038b6;
$custom-light: #9572cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6038b6",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 259.048,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46348,
    "c": 0.18715,
    "h": 292
  },
  "luminance": 0.08693
}

Semantic roles & 50–950 ramp

primary
#6038B6
secondary
#B1C684
accent
#DC4BAE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6038B6

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

Preview Lab → · Contrast checker → · Palette generator →

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