#6138BE#6138BE

#6138BE is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.1% C 0.197 H 290.9°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#6138BE
RGBrgb(97, 56, 190)
HSLhsl(258, 54%, 48%)
HSVhsv(258, 71%, 75%)
CMYKcmyk(48.9%, 70.5%, 0%, 25.5%)
CIE-LABlab(36.15, 49.18, -64.01)
CIE-LCHlch(36.15, 80.72, 307.53°)
OKLaboklab(47.12% 0.0702 -0.1836)
OKLCHoklch(47.12% 0.197 290.9)
XYZxyz(15.6356, 9.0868, 49.6353)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138BE #95BE38
analogous
#3852BE #6138BE #A438BE
triadic
#6138BE #BE6138 #38BE61
tetradic
#6138BE #BE3852 #95BE38 #38BEA4
square
#6138BE #BE3852 #95BE38 #38BEA4
split-complementary
#6138BE #BEA438 #52BE38
monochromatic
#311C5F #492A8F #6138BE #8462D1 #A992DF

Accessibility & contrast

On white

7.45
#6138BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6138BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138BE
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138BE#FFFFFF#000000##FFFFFF
##6138BE1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#425B77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6138be;
/* rgb */ color: rgb(97, 56, 190);
/* oklch */ color: oklch(47.1% 0.197 290.9);
Tailwind
colors: {
  custom: {
    50: '#9672d3',
    500: '#6138be',
    950: '#000000',
  },
}
SCSS
$custom: #6138be;
$custom-light: #9672d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6138be",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 258.358,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47124,
    "c": 0.19657,
    "h": 290.9
  },
  "luminance": 0.09087
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6138BE

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

Preview Lab → · Contrast checker → · Palette generator →

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