#6138CF#6138CF

#6138CF is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.216 H 287.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#6138CF
RGBrgb(97, 56, 207)
HSLhsl(256, 61%, 52%)
HSVhsv(256, 73%, 81%)
CMYKcmyk(53.1%, 72.9%, 0%, 18.8%)
CIE-LABlab(37.62, 53.91, -71.53)
CIE-LCHlch(37.62, 89.56, 307.00°)
OKLaboklab(48.61% 0.0666 -0.2057)
OKLCHoklch(48.61% 0.216 287.9)
XYZxyz(17.6031, 9.8739, 59.9977)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138CF #A6CF38
analogous
#385BCF #6138CF #AC38CF
triadic
#6138CF #CF6138 #38CF61
tetradic
#6138CF #CF385B #A6CF38 #38CFAC
square
#6138CF #CF385B #A6CF38 #38CFAC
split-complementary
#6138CF #CFAC38 #5BCF38
monochromatic
#331B71 #4927A3 #6138CF #8869DB #AF9BE7

Accessibility & contrast

On white

7.06
#6138CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6138CF
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138CF#FFFFFF#000000##FFFFFF
##6138CF1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#356180
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6138cf;
/* rgb */ color: rgb(97, 56, 207);
/* oklch */ color: oklch(48.6% 0.216 287.9);
Tailwind
colors: {
  custom: {
    50: '#9973df',
    500: '#6138cf',
    950: '#000000',
  },
}
SCSS
$custom: #6138cf;
$custom-light: #9973df;
$custom-dark: #000000;
JSON
{
  "hex": "#6138cf",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 256.291,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48612,
    "c": 0.21617,
    "h": 287.9
  },
  "luminance": 0.09875
}

Semantic roles & 50–950 ramp

primary
#6138CF
secondary
#C1D390
accent
#E444B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6138CF

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

Preview Lab → · Contrast checker → · Palette generator →

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