#6138BA#6138BA

#6138BA is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.192 H 291.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#6138BA
RGBrgb(97, 56, 186)
HSLhsl(259, 54%, 47%)
HSVhsv(259, 70%, 73%)
CMYKcmyk(47.8%, 69.9%, 0%, 27.1%)
CIE-LABlab(35.82, 48.07, -62.20)
CIE-LCHlch(35.82, 78.61, 307.70°)
OKLaboklab(46.79% 0.0709 -0.1783)
OKLCHoklch(46.79% 0.192 291.7)
XYZxyz(15.2044, 8.9144, 47.3644)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138BA #91BA38
analogous
#3850BA #6138BA #A238BA
triadic
#6138BA #BA6138 #38BA61
tetradic
#6138BA #BA3850 #91BA38 #38BAA2
square
#6138BA #BA3850 #91BA38 #38BAA2
split-complementary
#6138BA #BAA238 #50BA38
monochromatic
#301C5C #482A8B #6138BA #8360CF #A88FDD

Accessibility & contrast

On white

7.55
#6138BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6138BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138BA
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138BA#FFFFFF#000000##FFFFFF
##6138BA1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#455975
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6138ba;
/* rgb */ color: rgb(97, 56, 186);
/* oklch */ color: oklch(46.8% 0.192 291.7);
Tailwind
colors: {
  custom: {
    50: '#9672d0',
    500: '#6138ba',
    950: '#000000',
  },
}
SCSS
$custom: #6138ba;
$custom-light: #9672d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6138ba",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 258.923,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46785,
    "c": 0.19188,
    "h": 291.7
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#6138BA
secondary
#B3C886
accent
#DD4BAF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6138BA

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

Preview Lab → · Contrast checker → · Palette generator →

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