#6138AF#6138AF

#6138AF is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.179 H 294.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#6138AF
RGBrgb(97, 56, 175)
HSLhsl(261, 52%, 45%)
HSVhsv(261, 68%, 69%)
CMYKcmyk(44.6%, 68%, 0%, 31.4%)
CIE-LABlab(34.93, 45.02, -57.13)
CIE-LCHlch(34.93, 72.74, 308.24°)
OKLaboklab(45.87% 0.0728 -0.1634)
OKLCHoklch(45.87% 0.179 294)
XYZxyz(14.0797, 8.4645, 41.4411)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6138AF #86AF38
analogous
#384BAF #6138AF #9C38AF
triadic
#6138AF #AF6138 #38AF61
tetradic
#6138AF #AF384B #86AF38 #38AF9C
square
#6138AF #AF384B #86AF38 #38AF9C
split-complementary
#6138AF #AF9C38 #4BAF38
monochromatic
#2E1A52 #472981 #6138AF #815ACA #A488D9

Accessibility & contrast

On white

7.80
#6138AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6138AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6138AF
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6138AF#FFFFFF#000000##FFFFFF
##6138AF1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#4B556F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6138af;
/* rgb */ color: rgb(97, 56, 175);
/* oklch */ color: oklch(45.9% 0.179 294.0);
Tailwind
colors: {
  custom: {
    50: '#9471c8',
    500: '#6138af',
    950: '#000000',
  },
}
SCSS
$custom: #6138af;
$custom-light: #9471c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6138af",
  "rgb": {
    "r": 97,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 260.672,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45874,
    "c": 0.17885,
    "h": 294
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

primary
#6138AF
secondary
#ACC380
accent
#DB4DAA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6138AF

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

Preview Lab → · Contrast checker → · Palette generator →

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