#6138BB#6138BB

#6138BB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.193 H 291.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#6138BB
RGBrgb(97, 56, 187)
HSLhsl(259, 54%, 48%)
HSVhsv(259, 70%, 73%)
CMYKcmyk(48.1%, 70.1%, 0%, 26.7%)
CIE-LABlab(35.90, 48.34, -62.65)
CIE-LCHlch(35.90, 79.14, 307.65°)
OKLaboklab(46.87% 0.0707 -0.1796)
OKLCHoklch(46.87% 0.193 291.5)
XYZxyz(15.3111, 8.9570, 47.9262)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138BB #92BB38
analogous
#3850BB #6138BB #A338BB
triadic
#6138BB #BB6138 #38BB61
tetradic
#6138BB #BB3850 #92BB38 #38BBA3
square
#6138BB #BB3850 #92BB38 #38BBA3
split-complementary
#6138BB #BBA338 #50BB38
monochromatic
#301C5D #492A8C #6138BB #8361D0 #A890DE

Accessibility & contrast

On white

7.52
#6138BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6138BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138BB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138BB#FFFFFF#000000##FFFFFF
##6138BB1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#445975
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6138bb;
/* rgb */ color: rgb(97, 56, 187);
/* oklch */ color: oklch(46.9% 0.193 291.5);
Tailwind
colors: {
  custom: {
    50: '#9672d0',
    500: '#6138bb',
    950: '#000000',
  },
}
SCSS
$custom: #6138bb;
$custom-light: #9672d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6138bb",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 258.779,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46869,
    "c": 0.19305,
    "h": 291.5
  },
  "luminance": 0.08958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6138BB

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

Preview Lab → · Contrast checker → · Palette generator →

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