#6138DA#6138DA

#6138DA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.229 H 286.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#6138DA
RGBrgb(97, 56, 218)
HSLhsl(255, 69%, 54%)
HSVhsv(255, 74%, 85%)
CMYKcmyk(55.5%, 74.3%, 0%, 14.5%)
CIE-LABlab(38.60, 56.96, -76.24)
CIE-LCHlch(38.60, 95.17, 306.76°)
OKLaboklab(49.61% 0.0639 -0.2195)
OKLCHoklch(49.61% 0.229 286.2)
XYZxyz(18.9950, 10.4306, 67.3285)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138DA #B1DA38
analogous
#3860DA #6138DA #B238DA
triadic
#6138DA #DA6138 #38DA61
tetradic
#6138DA #DA3860 #B1DA38 #38DAB2
square
#6138DA #DA3860 #B1DA38 #38DAB2
split-complementary
#6138DA #DAB238 #60DA38
monochromatic
#321880 #4621B3 #6138DA #8A6CE4 #B39FED

Accessibility & contrast

On white

6.80
#6138DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6138DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6138DA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138DA#FFFFFF#000000##FFFFFF
##6138DA1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDF
Deuteranopia (green-blind)
#0056D7
Tritanopia (blue-blind)
#296587
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6138da;
/* rgb */ color: rgb(97, 56, 218);
/* oklch */ color: oklch(49.6% 0.229 286.2);
Tailwind
colors: {
  custom: {
    50: '#9a73e7',
    500: '#6138da',
    950: '#000000',
  },
}
SCSS
$custom: #6138da;
$custom-light: #9a73e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6138da",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 255.185,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49611,
    "c": 0.22859,
    "h": 286.2
  },
  "luminance": 0.10432
}

Semantic roles & 50–950 ramp

primary
#6138DA
secondary
#C8DA94
accent
#EB3CBF
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6138DA

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

Preview Lab → · Contrast checker → · Palette generator →

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