#7F741F#7F741F

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

Color values

HEX#7F741F
RGBrgb(127, 116, 31)
HSLhsl(53, 61%, 31%)
HSVhsv(53, 76%, 50%)
CMYKcmyk(0%, 8.7%, 75.6%, 50.2%)
CIE-LABlab(48.39, -5.87, 45.69)
CIE-LCHlch(48.39, 46.07, 97.32°)
OKLaboklab(55.31% -0.0209 0.1009)
OKLCHoklch(55.31% 0.103 101.7)
XYZxyz(15.2458, 17.1024, 3.7941)
Luminance0.1710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F741F #1F2A7F
analogous
#7F441F #7F741F #5A7F1F
triadic
#7F741F #1F7F74 #741F7F
tetradic
#7F741F #1F7F44 #1F2A7F #7F1F5A
square
#7F741F #1F7F44 #1F2A7F #7F1F5A
split-complementary
#7F741F #1F5A7F #441F7F
monochromatic
#1D1A07 #4E4713 #7F741F #B0A12B #D2C246

Accessibility & contrast

On white

4.75
#7F741F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F741F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F741F#FFFFFF#000000##FFFFFF
##7F741F1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f741f;
/* rgb */ color: rgb(127, 116, 31);
/* oklch */ color: oklch(55.3% 0.103 101.7);
Tailwind
colors: {
  custom: {
    50: '#a79b61',
    500: '#7f741f',
    950: '#000000',
  },
}
SCSS
$custom: #7f741f;
$custom-light: #a79b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f741f",
  "rgb": {
    "r": 127,
    "g": 116,
    "b": 31
  },
  "hsl": {
    "h": 53.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55308,
    "c": 0.10304,
    "h": 101.7
  },
  "luminance": 0.17102
}

Semantic roles & 50–950 ramp

primary
#7F741F
secondary
#4854B2
accent
#56E444
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F741F

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

Preview Lab → · Contrast checker → · Palette generator →

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