#6138EA#6138EA

#6138EA is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.1% C 0.246 H 284.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#6138EA
RGBrgb(97, 56, 234)
HSLhsl(254, 81%, 57%)
HSVhsv(254, 76%, 92%)
CMYKcmyk(58.5%, 76.1%, 0%, 8.2%)
CIE-LABlab(40.10, 61.39, -82.92)
CIE-LCHlch(40.10, 103.17, 306.52°)
OKLaboklab(51.11% 0.0598 -0.239)
OKLCHoklch(51.11% 0.246 284.1)
XYZxyz(21.1907, 11.3089, 78.8921)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138EA #C1EA38
analogous
#3868EA #6138EA #BA38EA
triadic
#6138EA #EA6138 #38EA61
tetradic
#6138EA #EA3868 #C1EA38 #38EABA
square
#6138EA #EA3868 #C1EA38 #38EABA
split-complementary
#6138EA #EABA38 #68EA38
monochromatic
#2F1098 #4016CF #6138EA #8D6FF0 #B9A7F6

Accessibility & contrast

On white

6.44
#6138EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6138EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6138EA
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138EA#FFFFFF#000000##FFFFFF
##6138EA1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EF
Deuteranopia (green-blind)
#0059E7
Tritanopia (blue-blind)
#006C90
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6138ea;
/* rgb */ color: rgb(97, 56, 234);
/* oklch */ color: oklch(51.1% 0.246 284.1);
Tailwind
colors: {
  custom: {
    50: '#9d74f2',
    500: '#6138ea',
    950: '#000000',
  },
}
SCSS
$custom: #6138ea;
$custom-light: #9d74f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6138ea",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 234
  },
  "hsl": {
    "h": 253.82,
    "s": 80.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51106,
    "c": 0.24634,
    "h": 284.1
  },
  "luminance": 0.1131
}

Semantic roles & 50–950 ramp

primary
#6138EA
secondary
#D2E39B
accent
#F730CA
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6138EA

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

Preview Lab → · Contrast checker → · Palette generator →

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