#7F7216#7F7216

#7F7216 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.107 H 100.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7F7216
RGBrgb(127, 114, 22)
HSLhsl(53, 70%, 29%)
HSVhsv(53, 83%, 50%)
CMYKcmyk(0%, 10.2%, 82.7%, 50.2%)
CIE-LABlab(47.76, -5.13, 48.35)
CIE-LCHlch(47.76, 48.62, 96.06°)
OKLaboklab(54.79% -0.0197 0.1047)
OKLCHoklch(54.79% 0.107 100.7)
XYZxyz(14.9153, 16.6053, 3.1784)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7216 #16237F
analogous
#7F3D16 #7F7216 #587F16
triadic
#7F7216 #167F72 #72167F
tetradic
#7F7216 #167F3D #16237F #7F1658
square
#7F7216 #167F3D #16237F #7F1658
split-complementary
#7F7216 #16587F #3D167F
monochromatic
#1A1705 #4B430D #7F7216 #B3A11F #DCC734

Accessibility & contrast

On white

4.86
#7F7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7F7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7216
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7216#FFFFFF#000000##FFFFFF
##7F72161.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#81731D
Tritanopia (blue-blind)
#896961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f7216;
/* rgb */ color: rgb(127, 114, 22);
/* oklch */ color: oklch(54.8% 0.107 100.7);
Tailwind
colors: {
  custom: {
    50: '#a89a5d',
    500: '#7f7216',
    950: '#000000',
  },
}
SCSS
$custom: #7f7216;
$custom-light: #a89a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7216",
  "rgb": {
    "r": 127,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 52.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54791,
    "c": 0.10653,
    "h": 100.7
  },
  "luminance": 0.16605
}

Semantic roles & 50–950 ramp

primary
#7F7216
secondary
#3D4CB4
accent
#51ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7F7216

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

Preview Lab → · Contrast checker → · Palette generator →

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