#7A7F17#7A7F17

#7A7F17 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.120 H 112.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7A7F17
RGBrgb(122, 127, 23)
HSLhsl(63, 69%, 29%)
HSVhsv(63, 82%, 50%)
CMYKcmyk(3.9%, 0%, 81.9%, 50.2%)
CIE-LABlab(51.13, -14.59, 50.84)
CIE-LCHlch(51.13, 52.89, 106.01°)
OKLaboklab(57.37% -0.0458 0.1105)
OKLCHoklch(57.37% 0.12 112.5)
XYZxyz(15.7706, 19.3786, 3.7201)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7F17 #1C177F
analogous
#7F5017 #7A7F17 #467F17
triadic
#7A7F17 #177A7F #7F177A
tetradic
#7A7F17 #177F50 #1C177F #7F1746
square
#7A7F17 #177F50 #1C177F #7F1746
split-complementary
#7A7F17 #17467F #50177F
monochromatic
#191A05 #484B0E #7A7F17 #ACB320 #D3DB36

Accessibility & contrast

On white

4.31
#7A7F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7A7F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A7F17
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7F17#FFFFFF#000000##000000
##7A7F171.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#8A7B21
Tritanopia (blue-blind)
#83776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7a7f17;
/* rgb */ color: rgb(122, 127, 23);
/* oklch */ color: oklch(57.4% 0.120 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a35f',
    500: '#7a7f17',
    950: '#000000',
  },
}
SCSS
$custom: #7a7f17;
$custom-light: #a4a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7f17",
  "rgb": {
    "r": 122,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 62.885,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57369,
    "c": 0.11959,
    "h": 112.5
  },
  "luminance": 0.19378
}

Semantic roles & 50–950 ramp

primary
#7A7F17
secondary
#443EB4
accent
#3CEC44
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7A7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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