#7F7014#7F7014

#7F7014 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.106 H 99.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7F7014
RGBrgb(127, 112, 20)
HSLhsl(52, 73%, 29%)
HSVhsv(52, 84%, 50%)
CMYKcmyk(0%, 11.8%, 84.3%, 50.2%)
CIE-LABlab(47.17, -4.07, 48.47)
CIE-LCHlch(47.17, 48.64, 94.80°)
OKLaboklab(54.32% -0.0169 0.1045)
OKLCHoklch(54.32% 0.106 99.2)
XYZxyz(14.6736, 16.1516, 3.0064)
Luminance0.1615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7014 #14237F
analogous
#7F3B14 #7F7014 #597F14
triadic
#7F7014 #147F70 #70147F
tetradic
#7F7014 #147F3B #14237F #7F1459
square
#7F7014 #147F3B #14237F #7F1459
split-complementary
#7F7014 #14597F #3B147F
monochromatic
#1A1704 #4A410C #7F7014 #B49F1C #DEC62F

Accessibility & contrast

On white

4.96
#7F7014 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7F7014 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7014
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7014#FFFFFF#000000##FFFFFF
##7F70141.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#80721B
Tritanopia (blue-blind)
#8A675F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f7014;
/* rgb */ color: rgb(127, 112, 20);
/* oklch */ color: oklch(54.3% 0.106 99.2);
Tailwind
colors: {
  custom: {
    50: '#a8985c',
    500: '#7f7014',
    950: '#000000',
  },
}
SCSS
$custom: #7f7014;
$custom-light: #a8985c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7014",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 20
  },
  "hsl": {
    "h": 51.589,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54323,
    "c": 0.10589,
    "h": 99.2
  },
  "luminance": 0.16151
}

Semantic roles & 50–950 ramp

primary
#7F7014
secondary
#3B4CB4
accent
#52EF38
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F7014

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

Preview Lab → · Contrast checker → · Palette generator →

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