#6138CE#6138CE

#6138CE is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.215 H 288.1°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#6138CE
RGBrgb(97, 56, 206)
HSLhsl(256, 60%, 51%)
HSVhsv(256, 73%, 81%)
CMYKcmyk(52.9%, 72.8%, 0%, 19.2%)
CIE-LABlab(37.53, 53.63, -71.09)
CIE-LCHlch(37.53, 89.05, 307.03°)
OKLaboklab(48.52% 0.0668 -0.2044)
OKLCHoklch(48.52% 0.215 288.1)
XYZxyz(17.4812, 9.8251, 59.3559)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138CE #A5CE38
analogous
#385ACE #6138CE #AC38CE
triadic
#6138CE #CE6138 #38CE61
tetradic
#6138CE #CE385A #A5CE38 #38CEAC
square
#6138CE #CE385A #A5CE38 #38CEAC
split-complementary
#6138CE #CEAC38 #5ACE38
monochromatic
#331C70 #4928A1 #6138CE #8869DA #AF9AE6

Accessibility & contrast

On white

7.08
#6138CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6138CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138CE
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138CE#FFFFFF#000000##FFFFFF
##6138CE1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#0054CB
Tritanopia (blue-blind)
#366180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6138ce;
/* rgb */ color: rgb(97, 56, 206);
/* oklch */ color: oklch(48.5% 0.215 288.1);
Tailwind
colors: {
  custom: {
    50: '#9973de',
    500: '#6138ce',
    950: '#000000',
  },
}
SCSS
$custom: #6138ce;
$custom-light: #9973de;
$custom-dark: #000000;
JSON
{
  "hex": "#6138ce",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 256.4,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.21503,
    "h": 288.1
  },
  "luminance": 0.09826
}

Semantic roles & 50–950 ramp

primary
#6138CE
secondary
#C0D290
accent
#E444B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6138CE

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

Preview Lab → · Contrast checker → · Palette generator →

#6138CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva