#6138D9#6138D9

#6138D9 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.5% C 0.227 H 286.4°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#6138D9
RGBrgb(97, 56, 217)
HSLhsl(255, 68%, 54%)
HSVhsv(255, 74%, 85%)
CMYKcmyk(55.3%, 74.2%, 0%, 14.9%)
CIE-LABlab(38.51, 56.69, -75.82)
CIE-LCHlch(38.51, 94.67, 306.78°)
OKLaboklab(49.52% 0.0642 -0.2182)
OKLCHoklch(49.52% 0.227 286.4)
XYZxyz(18.8646, 10.3784, 66.6414)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138D9 #B0D938
analogous
#385FD9 #6138D9 #B238D9
triadic
#6138D9 #D96138 #38D961
tetradic
#6138D9 #D9385F #B0D938 #38D9B2
square
#6138D9 #D9385F #B0D938 #38D9B2
split-complementary
#6138D9 #D9B238 #5FD938
monochromatic
#32187E #4722B2 #6138D9 #8A6BE3 #B39FED

Accessibility & contrast

On white

6.83
#6138D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6138D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6138D9
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138D9#FFFFFF#000000##FFFFFF
##6138D91.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0056D6
Tritanopia (blue-blind)
#2A6586
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6138d9;
/* rgb */ color: rgb(97, 56, 217);
/* oklch */ color: oklch(49.5% 0.227 286.4);
Tailwind
colors: {
  custom: {
    50: '#9a73e6',
    500: '#6138d9',
    950: '#000000',
  },
}
SCSS
$custom: #6138d9;
$custom-light: #9a73e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6138d9",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 255.28,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49519,
    "c": 0.22747,
    "h": 286.4
  },
  "luminance": 0.10379
}

Semantic roles & 50–950 ramp

primary
#6138D9
secondary
#C7D994
accent
#EB3DBF
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6138D9

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

Preview Lab → · Contrast checker → · Palette generator →

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