#6838AF#6838AF

#6838AF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.179 H 297.5°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#6838AF
RGBrgb(104, 56, 175)
HSLhsl(264, 52%, 45%)
HSVhsv(264, 68%, 69%)
CMYKcmyk(40.6%, 68%, 0%, 31.4%)
CIE-LABlab(35.73, 46.40, -55.80)
CIE-LCHlch(35.73, 72.57, 309.74°)
OKLaboklab(46.62% 0.0827 -0.1592)
OKLCHoklch(46.62% 0.179 297.5)
XYZxyz(14.8590, 8.8663, 41.4776)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838AF #7FAF38
analogous
#3843AF #6838AF #A438AF
triadic
#6838AF #AF6838 #38AF68
tetradic
#6838AF #AF3843 #7FAF38 #38AFA4
square
#6838AF #AF3843 #7FAF38 #38AFA4
split-complementary
#6838AF #AFA438 #43AF38
monochromatic
#311A52 #4C2981 #6838AF #875ACA #A988D9

Accessibility & contrast

On white

7.57
#6838AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6838AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838AF
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838AF#FFFFFF#000000##FFFFFF
##6838AF1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#56546F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6838af;
/* rgb */ color: rgb(104, 56, 175);
/* oklch */ color: oklch(46.6% 0.179 297.5);
Tailwind
colors: {
  custom: {
    50: '#9972c8',
    500: '#6838af',
    950: '#000000',
  },
}
SCSS
$custom: #6838af;
$custom-light: #9972c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6838af",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 264.202,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46624,
    "c": 0.17946,
    "h": 297.5
  },
  "luminance": 0.08867
}

Semantic roles & 50–950 ramp

primary
#6838AF
secondary
#A8C380
accent
#DB4DA2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6838AF

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

Preview Lab → · Contrast checker → · Palette generator →

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