#7F7015#7F7015

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

Color values

HEX#7F7015
RGBrgb(127, 112, 21)
HSLhsl(52, 72%, 29%)
HSVhsv(52, 83%, 50%)
CMYKcmyk(0%, 11.8%, 83.5%, 50.2%)
CIE-LABlab(47.18, -4.03, 48.16)
CIE-LCHlch(47.18, 48.33, 94.79°)
OKLaboklab(54.33% -0.0167 0.1041)
OKLCHoklch(54.33% 0.105 99.1)
XYZxyz(14.6827, 16.1553, 3.0542)
Luminance0.1615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7015 #15247F
analogous
#7F3B15 #7F7015 #597F15
triadic
#7F7015 #157F70 #70157F
tetradic
#7F7015 #157F3B #15247F #7F1559
square
#7F7015 #157F3B #15247F #7F1559
split-complementary
#7F7015 #15597F #3B157F
monochromatic
#1A1704 #4A420C #7F7015 #B49E1E #DDC531

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7015#FFFFFF#000000##FFFFFF
##7F70151.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)
#80721C
Tritanopia (blue-blind)
#8A675F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f7015;
/* rgb */ color: rgb(127, 112, 21);
/* oklch */ color: oklch(54.3% 0.105 99.1);
Tailwind
colors: {
  custom: {
    50: '#a8985c',
    500: '#7f7015',
    950: '#000000',
  },
}
SCSS
$custom: #7f7015;
$custom-light: #a8985c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7015",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 51.509,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54328,
    "c": 0.10541,
    "h": 99.1
  },
  "luminance": 0.16155
}

Semantic roles & 50–950 ramp

primary
#7F7015
secondary
#3C4DB4
accent
#53EE39
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F7015

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

Preview Lab → · Contrast checker → · Palette generator →

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