#6138BF#6138BF

#6138BF is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.2% C 0.198 H 290.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#6138BF
RGBrgb(97, 56, 191)
HSLhsl(258, 55%, 48%)
HSVhsv(258, 71%, 75%)
CMYKcmyk(49.2%, 70.7%, 0%, 25.1%)
CIE-LABlab(36.23, 49.45, -64.46)
CIE-LCHlch(36.23, 81.24, 307.50°)
OKLaboklab(47.21% 0.07 -0.1849)
OKLCHoklch(47.21% 0.198 290.7)
XYZxyz(15.7452, 9.1307, 50.2129)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138BF #96BF38
analogous
#3852BF #6138BF #A438BF
triadic
#6138BF #BF6138 #38BF61
tetradic
#6138BF #BF3852 #96BF38 #38BFA4
square
#6138BF #BF3852 #96BF38 #38BFA4
split-complementary
#6138BF #BFA438 #52BF38
monochromatic
#311C60 #492A90 #6138BF #8463D1 #AA92DF

Accessibility & contrast

On white

7.43
#6138BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6138BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138BF
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138BF#FFFFFF#000000##FFFFFF
##6138BF1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#0052BC
Tritanopia (blue-blind)
#425B78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6138bf;
/* rgb */ color: rgb(97, 56, 191);
/* oklch */ color: oklch(47.2% 0.198 290.7);
Tailwind
colors: {
  custom: {
    50: '#9672d3',
    500: '#6138bf',
    950: '#000000',
  },
}
SCSS
$custom: #6138bf;
$custom-light: #9672d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6138bf",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 258.222,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4721,
    "c": 0.19773,
    "h": 290.7
  },
  "luminance": 0.09131
}

Semantic roles & 50–950 ramp

primary
#6138BF
secondary
#B6CA89
accent
#DE4AB1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6138BF

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

Preview Lab → · Contrast checker → · Palette generator →

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