#7A7D17#7A7D17

#7A7D17 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.117 H 111.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7A7D17
RGBrgb(122, 125, 23)
HSLhsl(62, 69%, 29%)
HSVhsv(62, 82%, 49%)
CMYKcmyk(2.4%, 0%, 81.6%, 51%)
CIE-LABlab(50.53, -13.51, 50.31)
CIE-LCHlch(50.53, 52.09, 105.04°)
OKLaboklab(56.89% -0.0428 0.1094)
OKLCHoklch(56.89% 0.117 111.4)
XYZxyz(15.5149, 18.8671, 3.6349)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7D17 #1A177D
analogous
#7D4D17 #7A7D17 #477D17
triadic
#7A7D17 #177A7D #7D177A
tetradic
#7A7D17 #177D4D #1A177D #7D1747
square
#7A7D17 #177D4D #1A177D #7D1747
split-complementary
#7A7D17 #17477D #4D177D
monochromatic
#191A05 #48490D #7A7D17 #ACB121 #D5DA35

Accessibility & contrast

On white

4.40
#7A7D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7A7D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A7D17
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7D17#FFFFFF#000000##000000
##7A7D171.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#887920
Tritanopia (blue-blind)
#83756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7a7d17;
/* rgb */ color: rgb(122, 125, 23);
/* oklch */ color: oklch(56.9% 0.117 111.4);
Tailwind
colors: {
  custom: {
    50: '#a4a25f',
    500: '#7a7d17',
    950: '#000000',
  },
}
SCSS
$custom: #7a7d17;
$custom-light: #a4a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7d17",
  "rgb": {
    "r": 122,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 61.765,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56892,
    "c": 0.11743,
    "h": 111.4
  },
  "luminance": 0.18867
}

Semantic roles & 50–950 ramp

primary
#7A7D17
secondary
#413EB2
accent
#3CEC41
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7A7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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