#6038B2#6038B2

#6038B2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.182 H 292.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#6038B2
RGBrgb(96, 56, 178)
HSLhsl(260, 52%, 46%)
HSVhsv(260, 69%, 70%)
CMYKcmyk(46.1%, 68.5%, 0%, 30.2%)
CIE-LABlab(35.06, 45.66, -58.70)
CIE-LCHlch(35.06, 74.37, 307.88°)
OKLaboklab(46.02% 0.0709 -0.1681)
OKLCHoklch(46.02% 0.182 292.9)
XYZxyz(14.2717, 8.5290, 43.0052)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038B2 #8AB238
analogous
#384DB2 #6038B2 #9D38B2
triadic
#6038B2 #B26038 #38B260
tetradic
#6038B2 #B2384D #8AB238 #38B29D
square
#6038B2 #B2384D #8AB238 #38B29D
split-complementary
#6038B2 #B29D38 #4DB238
monochromatic
#2E1B55 #472983 #6038B2 #805CCC #A48ADA

Accessibility & contrast

On white

7.76
#6038B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6038B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038B2
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038B2#FFFFFF#000000##FFFFFF
##6038B21.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#485670
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6038b2;
/* rgb */ color: rgb(96, 56, 178);
/* oklch */ color: oklch(46.0% 0.182 292.9);
Tailwind
colors: {
  custom: {
    50: '#9471ca',
    500: '#6038b2',
    950: '#000000',
  },
}
SCSS
$custom: #6038b2;
$custom-light: #9471ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6038b2",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 259.672,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46016,
    "c": 0.18239,
    "h": 292.9
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#6038B2
secondary
#AEC581
accent
#DC4CAD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038B2

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

Preview Lab → · Contrast checker → · Palette generator →

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