#7A6817#7A6817

#7A6817 is a mid, moderate yellow. Relative luminance 0.141; OKLCH L 52.0% C 0.098 H 95.8°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7A6817
RGBrgb(122, 104, 23)
HSLhsl(49, 68%, 28%)
HSVhsv(49, 81%, 48%)
CMYKcmyk(0%, 14.8%, 81.1%, 52.2%)
CIE-LABlab(44.38, -1.76, 44.78)
CIE-LCHlch(44.38, 44.82, 92.26°)
OKLaboklab(51.99% -0.0099 0.0975)
OKLCHoklch(51.99% 0.098 95.8)
XYZxyz(13.1317, 14.1008, 2.8405)
Luminance0.1410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A6817 #17297A
analogous
#7A3617 #7A6817 #5A7A17
triadic
#7A6817 #177A68 #68177A
tetradic
#7A6817 #177A36 #17297A #7A175A
square
#7A6817 #177A36 #17297A #7A175A
split-complementary
#7A6817 #175A7A #36177A
monochromatic
#1A1605 #473C0D #7A6817 #AD9421 #D9BA33

Accessibility & contrast

On white

5.50
#7A6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7A6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A6817
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A6817#FFFFFF#000000##FFFFFF
##7A68171.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#786B1C
Tritanopia (blue-blind)
#845F59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7a6817;
/* rgb */ color: rgb(122, 104, 23);
/* oklch */ color: oklch(52.0% 0.098 95.8);
Tailwind
colors: {
  custom: {
    50: '#a4925c',
    500: '#7a6817',
    950: '#000000',
  },
}
SCSS
$custom: #7a6817;
$custom-light: #a4925c;
$custom-dark: #000000;
JSON
{
  "hex": "#7a6817",
  "rgb": {
    "r": 122,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 49.091,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51993,
    "c": 0.098,
    "h": 95.8
  },
  "luminance": 0.141
}

Semantic roles & 50–950 ramp

primary
#7A6817
secondary
#3E52AF
accent
#5CEB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7A6817

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

Preview Lab → · Contrast checker → · Palette generator →

#7A6817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva