#7A7817#7A7817

#7A7817 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.7% C 0.112 H 108.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7A7817
RGBrgb(122, 120, 23)
HSLhsl(59, 68%, 28%)
HSVhsv(59, 81%, 48%)
CMYKcmyk(0%, 1.6%, 81.1%, 52.2%)
CIE-LABlab(49.05, -10.79, 48.99)
CIE-LCHlch(49.05, 50.17, 102.42°)
OKLaboklab(55.71% -0.0352 0.1065)
OKLCHoklch(55.71% 0.112 108.3)
XYZxyz(14.8978, 17.6329, 3.4292)
Luminance0.1763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7817 #17197A
analogous
#7A4617 #7A7817 #4A7A17
triadic
#7A7817 #177A78 #78177A
tetradic
#7A7817 #177A46 #17197A #7A174A
square
#7A7817 #177A46 #17197A #7A174A
split-complementary
#7A7817 #174A7A #46177A
monochromatic
#1A1905 #47450D #7A7817 #ADAB21 #D9D533

Accessibility & contrast

On white

4.64
#7A7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7A7817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A7817
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7817#FFFFFF#000000##FFFFFF
##7A78171.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#84761F
Tritanopia (blue-blind)
#837066
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a7817;
/* rgb */ color: rgb(122, 120, 23);
/* oklch */ color: oklch(55.7% 0.112 108.3);
Tailwind
colors: {
  custom: {
    50: '#a49e5e',
    500: '#7a7817',
    950: '#000000',
  },
}
SCSS
$custom: #7a7817;
$custom-light: #a49e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7817",
  "rgb": {
    "r": 122,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 58.788,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55706,
    "c": 0.11219,
    "h": 108.3
  },
  "luminance": 0.17632
}

Semantic roles & 50–950 ramp

primary
#7A7817
secondary
#3E40AF
accent
#40EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A7817

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

Preview Lab → · Contrast checker → · Palette generator →

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