#7F741C#7F741C

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

Color values

HEX#7F741C
RGBrgb(127, 116, 28)
HSLhsl(53, 64%, 30%)
HSVhsv(53, 78%, 50%)
CMYKcmyk(0%, 8.7%, 78%, 50.2%)
CIE-LABlab(48.37, -6.01, 46.82)
CIE-LCHlch(48.37, 47.20, 97.32°)
OKLaboklab(55.29% -0.0216 0.1027)
OKLCHoklch(55.29% 0.105 101.9)
XYZxyz(15.2081, 17.0873, 3.5955)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F741C #1C277F
analogous
#7F421C #7F741C #597F1C
triadic
#7F741C #1C7F74 #741C7F
tetradic
#7F741C #1C7F42 #1C277F #7F1C59
square
#7F741C #1C7F42 #1C277F #7F1C59
split-complementary
#7F741C #1C597F #421C7F
monochromatic
#1B1806 #4D4611 #7F741C #B1A227 #D5C440

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F741C#FFFFFF#000000##FFFFFF
##7F741C1.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)
#7F700A
Deuteranopia (green-blind)
#837522
Tritanopia (blue-blind)
#896B63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f741c;
/* rgb */ color: rgb(127, 116, 28);
/* oklch */ color: oklch(55.3% 0.105 101.9);
Tailwind
colors: {
  custom: {
    50: '#a79b60',
    500: '#7f741c',
    950: '#000000',
  },
}
SCSS
$custom: #7f741c;
$custom-light: #a79b60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f741c",
  "rgb": {
    "r": 127,
    "g": 116,
    "b": 28
  },
  "hsl": {
    "h": 53.333,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55287,
    "c": 0.10494,
    "h": 101.9
  },
  "luminance": 0.17087
}

Semantic roles & 50–950 ramp

primary
#7F741C
secondary
#4450B3
accent
#53E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F741C

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

Preview Lab → · Contrast checker → · Palette generator →

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