#7F741B#7F741B

#7F741B is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.3% C 0.106 H 102.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F741B
RGBrgb(127, 116, 27)
HSLhsl(53, 65%, 30%)
HSVhsv(53, 79%, 50%)
CMYKcmyk(0%, 8.7%, 78.7%, 50.2%)
CIE-LABlab(48.36, -6.06, 47.18)
CIE-LCHlch(48.36, 47.57, 97.31°)
OKLaboklab(55.28% -0.0219 0.1032)
OKLCHoklch(55.28% 0.106 102)
XYZxyz(15.1963, 17.0826, 3.5335)
Luminance0.1708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F741B #1B267F
analogous
#7F421B #7F741B #587F1B
triadic
#7F741B #1B7F74 #741B7F
tetradic
#7F741B #1B7F42 #1B267F #7F1B58
square
#7F741B #1B7F42 #1B267F #7F1B58
split-complementary
#7F741B #1B587F #421B7F
monochromatic
#1A1806 #4D4610 #7F741B #B1A226 #D6C53E

Accessibility & contrast

On white

4.76
#7F741B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7F741B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F741B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F741B#FFFFFF#000000##FFFFFF
##7F741B1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7008
Deuteranopia (green-blind)
#837522
Tritanopia (blue-blind)
#896B63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f741b;
/* rgb */ color: rgb(127, 116, 27);
/* oklch */ color: oklch(55.3% 0.106 102.0);
Tailwind
colors: {
  custom: {
    50: '#a79b5f',
    500: '#7f741b',
    950: '#000000',
  },
}
SCSS
$custom: #7f741b;
$custom-light: #a79b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f741b",
  "rgb": {
    "r": 127,
    "g": 116,
    "b": 27
  },
  "hsl": {
    "h": 53.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5528,
    "c": 0.10553,
    "h": 102
  },
  "luminance": 0.17082
}

Semantic roles & 50–950 ramp

primary
#7F741B
secondary
#434FB3
accent
#52E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F741B

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

Preview Lab → · Contrast checker → · Palette generator →

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