#6A7815#6A7815

#6A7815 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.3% C 0.118 H 117.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#6A7815
RGBrgb(106, 120, 21)
HSLhsl(68, 70%, 28%)
HSVhsv(68, 83%, 47%)
CMYKcmyk(11.7%, 0%, 82.5%, 52.9%)
CIE-LABlab(47.69, -18.26, 47.90)
CIE-LCHlch(47.69, 51.26, 110.87°)
OKLaboklab(54.28% -0.0552 0.1045)
OKLCHoklch(54.28% 0.118 117.8)
XYZxyz(12.7960, 16.5514, 3.2300)
Luminance0.1655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A7815 #231578
analogous
#785515 #6A7815 #387815
triadic
#6A7815 #156A78 #78156A
tetradic
#6A7815 #157855 #231578 #781538
square
#6A7815 #157855 #231578 #781538
split-complementary
#6A7815 #153878 #551578
monochromatic
#171A05 #3C440C #6A7815 #98AC1E #C2DA2D

Accessibility & contrast

On white

4.87
#6A7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#6A7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A7815
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A7815#FFFFFF#000000##FFFFFF
##6A78151.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7F721F
Tritanopia (blue-blind)
#717166
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #6a7815;
/* rgb */ color: rgb(106, 120, 21);
/* oklch */ color: oklch(54.3% 0.118 117.8);
Tailwind
colors: {
  custom: {
    50: '#989e5d',
    500: '#6a7815',
    950: '#000000',
  },
}
SCSS
$custom: #6a7815;
$custom-light: #989e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#6a7815",
  "rgb": {
    "r": 106,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 68.485,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.54282,
    "c": 0.11814,
    "h": 117.8
  },
  "luminance": 0.16551
}

Semantic roles & 50–950 ramp

primary
#6A7815
secondary
#4B3BAE
accent
#3BED54
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6A7815

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

Preview Lab → · Contrast checker → · Palette generator →

#6A7815 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva