#6138CA#6138CA

#6138CA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.210 H 288.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#6138CA
RGBrgb(97, 56, 202)
HSLhsl(257, 58%, 51%)
HSVhsv(257, 72%, 79%)
CMYKcmyk(52%, 72.3%, 0%, 20.8%)
CIE-LABlab(37.18, 52.51, -69.35)
CIE-LCHlch(37.18, 86.99, 307.14°)
OKLaboklab(48.17% 0.0677 -0.1993)
OKLCHoklch(48.17% 0.21 288.8)
XYZxyz(17.0015, 9.6332, 56.8292)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138CA #A1CA38
analogous
#3858CA #6138CA #AA38CA
triadic
#6138CA #CA6138 #38CA61
tetradic
#6138CA #CA3858 #A1CA38 #38CAAA
square
#6138CA #CA3858 #A1CA38 #38CAAA
split-complementary
#6138CA #CAAA38 #58CA38
monochromatic
#331D6B #49299B #6138CA #8768D7 #AE99E4

Accessibility & contrast

On white

7.18
#6138CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6138CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138CA
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138CA#FFFFFF#000000##FFFFFF
##6138CA1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#395F7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6138ca;
/* rgb */ color: rgb(97, 56, 202);
/* oklch */ color: oklch(48.2% 0.210 288.8);
Tailwind
colors: {
  custom: {
    50: '#9872db',
    500: '#6138ca',
    950: '#000000',
  },
}
SCSS
$custom: #6138ca;
$custom-light: #9872db;
$custom-dark: #000000;
JSON
{
  "hex": "#6138ca",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 256.849,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48167,
    "c": 0.21045,
    "h": 288.8
  },
  "luminance": 0.09634
}

Semantic roles & 50–950 ramp

primary
#6138CA
secondary
#BDCF8E
accent
#E147B6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6138CA

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

Preview Lab → · Contrast checker → · Palette generator →

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