#6138CB#6138CB

#6138CB is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.212 H 288.6°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#6138CB
RGBrgb(97, 56, 203)
HSLhsl(257, 59%, 51%)
HSVhsv(257, 72%, 80%)
CMYKcmyk(52.2%, 72.4%, 0%, 20.4%)
CIE-LABlab(37.26, 52.79, -69.78)
CIE-LCHlch(37.26, 87.50, 307.11°)
OKLaboklab(48.26% 0.0675 -0.2005)
OKLCHoklch(48.26% 0.212 288.6)
XYZxyz(17.1203, 9.6807, 57.4548)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138CB #A2CB38
analogous
#3858CB #6138CB #AB38CB
triadic
#6138CB #CB6138 #38CB61
tetradic
#6138CB #CB3858 #A2CB38 #38CBAB
square
#6138CB #CB3858 #A2CB38 #38CBAB
split-complementary
#6138CB #CBAB38 #58CB38
monochromatic
#331C6C #49299D #6138CB #8869D8 #AE99E4

Accessibility & contrast

On white

7.15
#6138CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#6138CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138CB
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138CB#FFFFFF#000000##FFFFFF
##6138CB1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#395F7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6138cb;
/* rgb */ color: rgb(97, 56, 203);
/* oklch */ color: oklch(48.3% 0.212 288.6);
Tailwind
colors: {
  custom: {
    50: '#9872dc',
    500: '#6138cb',
    950: '#000000',
  },
}
SCSS
$custom: #6138cb;
$custom-light: #9872dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6138cb",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 256.735,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48256,
    "c": 0.2116,
    "h": 288.6
  },
  "luminance": 0.09682
}

Semantic roles & 50–950 ramp

primary
#6138CB
secondary
#BED08F
accent
#E246B6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6138CB

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

Preview Lab → · Contrast checker → · Palette generator →

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