#7F701F#7F701F

#7F701F is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.4% C 0.100 H 98.4°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7F701F
RGBrgb(127, 112, 31)
HSLhsl(51, 61%, 31%)
HSVhsv(51, 76%, 50%)
CMYKcmyk(0%, 11.8%, 75.6%, 50.2%)
CIE-LABlab(47.24, -3.61, 44.58)
CIE-LCHlch(47.24, 44.72, 94.62°)
OKLaboklab(54.39% -0.0145 0.0985)
OKLCHoklch(54.39% 0.1 98.4)
XYZxyz(14.7946, 16.2000, 3.6437)
Luminance0.1620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F701F #1F2E7F
analogous
#7F401F #7F701F #5E7F1F
triadic
#7F701F #1F7F70 #701F7F
tetradic
#7F701F #1F7F40 #1F2E7F #7F1F5E
square
#7F701F #1F7F40 #1F2E7F #7F1F5E
split-complementary
#7F701F #1F5E7F #401F7F
monochromatic
#1D1907 #4E4513 #7F701F #B09B2B #D2BC46

Accessibility & contrast

On white

4.95
#7F701F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7F701F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F701F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F701F#FFFFFF#000000##FFFFFF
##7F701F1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D11
Deuteranopia (green-blind)
#807224
Tritanopia (blue-blind)
#896760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f701f;
/* rgb */ color: rgb(127, 112, 31);
/* oklch */ color: oklch(54.4% 0.100 98.4);
Tailwind
colors: {
  custom: {
    50: '#a79861',
    500: '#7f701f',
    950: '#000000',
  },
}
SCSS
$custom: #7f701f;
$custom-light: #a79861;
$custom-dark: #000000;
JSON
{
  "hex": "#7f701f",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 50.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54393,
    "c": 0.09959,
    "h": 98.4
  },
  "luminance": 0.16199
}

Semantic roles & 50–950 ramp

primary
#7F701F
secondary
#4858B2
accent
#5DE444
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7F701F

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

Preview Lab → · Contrast checker → · Palette generator →

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