#6138CD#6138CD

#6138CD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.4% C 0.214 H 288.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#6138CD
RGBrgb(97, 56, 205)
HSLhsl(257, 60%, 51%)
HSVhsv(257, 73%, 80%)
CMYKcmyk(52.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(37.44, 53.35, -70.66)
CIE-LCHlch(37.44, 88.54, 307.05°)
OKLaboklab(48.43% 0.067 -0.2031)
OKLCHoklch(48.43% 0.214 288.3)
XYZxyz(17.3601, 9.7767, 58.7181)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138CD #A4CD38
analogous
#3859CD #6138CD #AB38CD
triadic
#6138CD #CD6138 #38CD61
tetradic
#6138CD #CD3859 #A4CD38 #38CDAB
square
#6138CD #CD3859 #A4CD38 #38CDAB
split-complementary
#6138CD #CDAB38 #59CD38
monochromatic
#331C6F #4928A0 #6138CD #8869D9 #AF9AE6

Accessibility & contrast

On white

7.11
#6138CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#6138CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138CD
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138CD#FFFFFF#000000##FFFFFF
##6138CD1.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#37607F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6138cd;
/* rgb */ color: rgb(97, 56, 205);
/* oklch */ color: oklch(48.4% 0.214 288.3);
Tailwind
colors: {
  custom: {
    50: '#9873dd',
    500: '#6138cd',
    950: '#000000',
  },
}
SCSS
$custom: #6138cd;
$custom-light: #9873dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6138cd",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 256.51,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48434,
    "c": 0.21388,
    "h": 288.3
  },
  "luminance": 0.09778
}

Semantic roles & 50–950 ramp

primary
#6138CD
secondary
#BFD18F
accent
#E345B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6138CD

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

Preview Lab → · Contrast checker → · Palette generator →

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