#6138BC#6138BC

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

Color values

HEX#6138BC
RGBrgb(97, 56, 188)
HSLhsl(259, 54%, 48%)
HSVhsv(259, 70%, 74%)
CMYKcmyk(48.4%, 70.2%, 0%, 26.3%)
CIE-LABlab(35.98, 48.62, -63.11)
CIE-LCHlch(35.98, 79.66, 307.61°)
OKLaboklab(46.95% 0.0706 -0.181)
OKLCHoklch(46.95% 0.194 291.3)
XYZxyz(15.4185, 9.0000, 48.4920)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138BC #93BC38
analogous
#3851BC #6138BC #A338BC
triadic
#6138BC #BC6138 #38BC61
tetradic
#6138BC #BC3851 #93BC38 #38BCA3
square
#6138BC #BC3851 #93BC38 #38BCA3
split-complementary
#6138BC #BCA338 #51BC38
monochromatic
#301C5E #492A8D #6138BC #8461D0 #A890DE

Accessibility & contrast

On white

7.50
#6138BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6138BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138BC
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138BC#FFFFFF#000000##FFFFFF
##6138BC1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#445A76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6138bc;
/* rgb */ color: rgb(97, 56, 188);
/* oklch */ color: oklch(47.0% 0.194 291.3);
Tailwind
colors: {
  custom: {
    50: '#9672d1',
    500: '#6138bc',
    950: '#000000',
  },
}
SCSS
$custom: #6138bc;
$custom-light: #9672d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6138bc",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 258.636,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46954,
    "c": 0.19423,
    "h": 291.3
  },
  "luminance": 0.09001
}

Semantic roles & 50–950 ramp

primary
#6138BC
secondary
#B4C987
accent
#DD4AB0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6138BC

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

Preview Lab → · Contrast checker → · Palette generator →

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