#6138BD#6138BD

#6138BD is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.0% C 0.195 H 291.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#6138BD
RGBrgb(97, 56, 189)
HSLhsl(258, 54%, 48%)
HSVhsv(258, 70%, 74%)
CMYKcmyk(48.7%, 70.4%, 0%, 25.9%)
CIE-LABlab(36.07, 48.90, -63.56)
CIE-LCHlch(36.07, 80.19, 307.57°)
OKLaboklab(47.04% 0.0704 -0.1823)
OKLCHoklch(47.04% 0.195 291.1)
XYZxyz(15.5266, 9.0433, 49.0617)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138BD #94BD38
analogous
#3851BD #6138BD #A338BD
triadic
#6138BD #BD6138 #38BD61
tetradic
#6138BD #BD3851 #94BD38 #38BDA3
square
#6138BD #BD3851 #94BD38 #38BDA3
split-complementary
#6138BD #BDA338 #51BD38
monochromatic
#311C5F #492A8E #6138BD #8462D0 #A991DE

Accessibility & contrast

On white

7.48
#6138BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6138BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138BD
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138BD#FFFFFF#000000##FFFFFF
##6138BD1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#435A76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6138bd;
/* rgb */ color: rgb(97, 56, 189);
/* oklch */ color: oklch(47.0% 0.195 291.1);
Tailwind
colors: {
  custom: {
    50: '#9672d2',
    500: '#6138bd',
    950: '#000000',
  },
}
SCSS
$custom: #6138bd;
$custom-light: #9672d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6138bd",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 258.496,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47039,
    "c": 0.19539,
    "h": 291.1
  },
  "luminance": 0.09044
}

Semantic roles & 50–950 ramp

primary
#6138BD
secondary
#B5C987
accent
#DE4AB0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6138BD

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

Preview Lab → · Contrast checker → · Palette generator →

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