#7F7121#7F7121

#7F7121 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.6% C 0.099 H 99.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F7121
RGBrgb(127, 113, 33)
HSLhsl(51, 59%, 31%)
HSVhsv(51, 74%, 50%)
CMYKcmyk(0%, 11%, 74%, 50.2%)
CIE-LABlab(47.54, -4.07, 44.05)
CIE-LCHlch(47.54, 44.24, 95.28°)
OKLaboklab(54.64% -0.0156 0.0978)
OKLCHoklch(54.64% 0.099 99.1)
XYZxyz(14.9327, 16.4328, 3.8238)
Luminance0.1643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7121 #212F7F
analogous
#7F4221 #7F7121 #5E7F21
triadic
#7F7121 #217F71 #71217F
tetradic
#7F7121 #217F42 #212F7F #7F215E
square
#7F7121 #217F42 #212F7F #7F215E
split-complementary
#7F7121 #215E7F #42217F
monochromatic
#1E1B08 #4E4614 #7F7121 #B09C2E #D0BC4A

Accessibility & contrast

On white

4.90
#7F7121 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7F7121 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7121
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7121#FFFFFF#000000##FFFFFF
##7F71211.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E14
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#896861
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f7121;
/* rgb */ color: rgb(127, 113, 33);
/* oklch */ color: oklch(54.6% 0.099 99.1);
Tailwind
colors: {
  custom: {
    50: '#a79962',
    500: '#7f7121',
    950: '#000000',
  },
}
SCSS
$custom: #7f7121;
$custom-light: #a79962;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7121",
  "rgb": {
    "r": 127,
    "g": 113,
    "b": 33
  },
  "hsl": {
    "h": 51.064,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54636,
    "c": 0.09906,
    "h": 99.1
  },
  "luminance": 0.16432
}

Semantic roles & 50–950 ramp

primary
#7F7121
secondary
#4A5AB2
accent
#5DE246
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D05
muted
#7F7E7A

Preview Lab

Preview with #7F7121

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

Preview Lab → · Contrast checker → · Palette generator →

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