#6138C4#6138C4

#6138C4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.6% C 0.204 H 289.8°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#6138C4
RGBrgb(97, 56, 196)
HSLhsl(258, 56%, 49%)
HSVhsv(258, 71%, 77%)
CMYKcmyk(50.5%, 71.4%, 0%, 23.1%)
CIE-LABlab(36.66, 50.84, -66.69)
CIE-LCHlch(36.66, 83.87, 307.32°)
OKLaboklab(47.64% 0.069 -0.1915)
OKLCHoklch(47.64% 0.204 289.8)
XYZxyz(16.3049, 9.3546, 53.1603)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138C4 #9BC438
analogous
#3855C4 #6138C4 #A738C4
triadic
#6138C4 #C46138 #38C461
tetradic
#6138C4 #C43855 #9BC438 #38C4A7
square
#6138C4 #C43855 #9BC438 #38C4A7
split-complementary
#6138C4 #C4A738 #55C438
monochromatic
#321D65 #492A94 #6138C4 #8666D3 #AC96E1

Accessibility & contrast

On white

7.31
#6138C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6138C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138C4
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138C4#FFFFFF#000000##FFFFFF
##6138C41.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#3E5D7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6138c4;
/* rgb */ color: rgb(97, 56, 196);
/* oklch */ color: oklch(47.6% 0.204 289.8);
Tailwind
colors: {
  custom: {
    50: '#9772d7',
    500: '#6138c4',
    950: '#000000',
  },
}
SCSS
$custom: #6138c4;
$custom-light: #9772d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6138c4",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 257.571,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47641,
    "c": 0.20354,
    "h": 289.8
  },
  "luminance": 0.09355
}

Semantic roles & 50–950 ramp

primary
#6138C4
secondary
#B9CC8C
accent
#DF49B3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6138C4

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

Preview Lab → · Contrast checker → · Palette generator →

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