#7F7D1F#7F7D1F

#7F7D1F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.112 H 108.2°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7F7D1F
RGBrgb(127, 125, 31)
HSLhsl(59, 61%, 31%)
HSVhsv(59, 76%, 50%)
CMYKcmyk(0%, 1.6%, 75.6%, 50.2%)
CIE-LABlab(51.01, -10.86, 48.19)
CIE-LCHlch(51.01, 49.40, 102.70°)
OKLaboklab(57.4% -0.0349 0.1062)
OKLCHoklch(57.4% 0.112 108.2)
XYZxyz(16.3340, 19.2787, 4.1568)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D1F #1F217F
analogous
#7F4D1F #7F7D1F #517F1F
triadic
#7F7D1F #1F7F7D #7D1F7F
tetradic
#7F7D1F #1F7F4D #1F217F #7F1F51
square
#7F7D1F #1F7F4D #1F217F #7F1F51
split-complementary
#7F7D1F #1F517F #4D1F7F
monochromatic
#1D1C07 #4E4D13 #7F7D1F #B0AD2B #D2CF46

Accessibility & contrast

On white

4.32
#7F7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#7F7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7D1F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7D1F#FFFFFF#000000##000000
##7F7D1F1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#89756B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7d1f;
/* rgb */ color: rgb(127, 125, 31);
/* oklch */ color: oklch(57.4% 0.112 108.2);
Tailwind
colors: {
  custom: {
    50: '#a7a262',
    500: '#7f7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d1f;
$custom-light: #a7a262;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d1f",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 58.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57396,
    "c": 0.1118,
    "h": 108.2
  },
  "luminance": 0.19278
}

Semantic roles & 50–950 ramp

primary
#7F7D1F
secondary
#484AB2
accent
#47E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7F7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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