#7A6917#7A6917

#7A6917 is a mid, moderate yellow. Relative luminance 0.143; OKLCH L 52.2% C 0.099 H 96.7°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7A6917
RGBrgb(122, 105, 23)
HSLhsl(50, 68%, 28%)
HSVhsv(50, 81%, 48%)
CMYKcmyk(0%, 13.9%, 81.1%, 52.2%)
CIE-LABlab(44.66, -2.34, 45.04)
CIE-LCHlch(44.66, 45.10, 92.97°)
OKLaboklab(52.22% -0.0115 0.0981)
OKLCHoklch(52.22% 0.099 96.7)
XYZxyz(13.2330, 14.3033, 2.8743)
Luminance0.1430 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A6917 #17287A
analogous
#7A3717 #7A6917 #597A17
triadic
#7A6917 #177A69 #69177A
tetradic
#7A6917 #177A37 #17287A #7A1759
square
#7A6917 #177A37 #17287A #7A1759
split-complementary
#7A6917 #17597A #37177A
monochromatic
#1A1605 #473D0D #7A6917 #AD9521 #D9BC33

Accessibility & contrast

On white

5.44
#7A6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7A6917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A6917
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A6917#FFFFFF#000000##FFFFFF
##7A69171.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756605
Deuteranopia (green-blind)
#796C1D
Tritanopia (blue-blind)
#84605A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a6917;
/* rgb */ color: rgb(122, 105, 23);
/* oklch */ color: oklch(52.2% 0.099 96.7);
Tailwind
colors: {
  custom: {
    50: '#a4935c',
    500: '#7a6917',
    950: '#000000',
  },
}
SCSS
$custom: #7a6917;
$custom-light: #a4935c;
$custom-dark: #000000;
JSON
{
  "hex": "#7a6917",
  "rgb": {
    "r": 122,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 49.697,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52221,
    "c": 0.09873,
    "h": 96.7
  },
  "luminance": 0.14303
}

Semantic roles & 50–950 ramp

primary
#7A6917
secondary
#3E51AF
accent
#5BEB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7A6917

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

Preview Lab → · Contrast checker → · Palette generator →

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