#6138AD#6138AD

#6138AD is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.176 H 294.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#6138AD
RGBrgb(97, 56, 173)
HSLhsl(261, 51%, 45%)
HSVhsv(261, 68%, 68%)
CMYKcmyk(43.9%, 67.6%, 0%, 32.2%)
CIE-LABlab(34.78, 44.47, -56.19)
CIE-LCHlch(34.78, 71.66, 308.36°)
OKLaboklab(45.71% 0.073 -0.1606)
OKLCHoklch(45.71% 0.176 294.5)
XYZxyz(13.8847, 8.3865, 40.4143)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138AD #84AD38
analogous
#3849AD #6138AD #9C38AD
triadic
#6138AD #AD6138 #38AD61
tetradic
#6138AD #AD3849 #84AD38 #38AD9C
square
#6138AD #AD3849 #84AD38 #38AD9C
split-complementary
#6138AD #AD9C38 #49AD38
monochromatic
#2D1A51 #47297F #6138AD #8059C9 #A487D8

Accessibility & contrast

On white

7.84
#6138AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6138AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138AD
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138AD#FFFFFF#000000##FFFFFF
##6138AD1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#4C546E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6138ad;
/* rgb */ color: rgb(97, 56, 173);
/* oklch */ color: oklch(45.7% 0.176 294.5);
Tailwind
colors: {
  custom: {
    50: '#9471c6',
    500: '#6138ad',
    950: '#000000',
  },
}
SCSS
$custom: #6138ad;
$custom-light: #9471c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6138ad",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 261.026,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45713,
    "c": 0.17647,
    "h": 294.5
  },
  "luminance": 0.08387
}

Semantic roles & 50–950 ramp

primary
#6138AD
secondary
#ABC27F
accent
#DB4DA9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6138AD

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

Preview Lab → · Contrast checker → · Palette generator →

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