#6138AE#6138AE

#6138AE is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.178 H 294.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#6138AE
RGBrgb(97, 56, 174)
HSLhsl(261, 51%, 45%)
HSVhsv(261, 68%, 68%)
CMYKcmyk(44.3%, 67.8%, 0%, 31.8%)
CIE-LABlab(34.85, 44.75, -56.66)
CIE-LCHlch(34.85, 72.20, 308.30°)
OKLaboklab(45.79% 0.0729 -0.162)
OKLCHoklch(45.79% 0.178 294.2)
XYZxyz(13.9819, 8.4254, 40.9258)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138AE #85AE38
analogous
#384AAE #6138AE #9C38AE
triadic
#6138AE #AE6138 #38AE61
tetradic
#6138AE #AE384A #85AE38 #38AE9C
square
#6138AE #AE384A #85AE38 #38AE9C
split-complementary
#6138AE #AE9C38 #4AAE38
monochromatic
#2D1A51 #472980 #6138AE #8059CA #A488D9

Accessibility & contrast

On white

7.82
#6138AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6138AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138AE
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138AE#FFFFFF#000000##FFFFFF
##6138AE1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#4C556E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6138ae;
/* rgb */ color: rgb(97, 56, 174);
/* oklch */ color: oklch(45.8% 0.178 294.2);
Tailwind
colors: {
  custom: {
    50: '#9471c7',
    500: '#6138ae',
    950: '#000000',
  },
}
SCSS
$custom: #6138ae;
$custom-light: #9471c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6138ae",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 260.847,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45793,
    "c": 0.17766,
    "h": 294.2
  },
  "luminance": 0.08426
}

Semantic roles & 50–950 ramp

primary
#6138AE
secondary
#ABC37F
accent
#DB4DAA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6138AE

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

Preview Lab → · Contrast checker → · Palette generator →

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