#7F7516#7F7516

#7F7516 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.5% C 0.109 H 103.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F7516
RGBrgb(127, 117, 22)
HSLhsl(54, 70%, 29%)
HSVhsv(54, 83%, 50%)
CMYKcmyk(0%, 7.9%, 82.7%, 50.2%)
CIE-LABlab(48.63, -6.82, 49.11)
CIE-LCHlch(48.63, 49.58, 97.90°)
OKLaboklab(55.48% -0.0245 0.1063)
OKLCHoklch(55.48% 0.109 103)
XYZxyz(15.2592, 17.2932, 3.2931)
Luminance0.1729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7516 #16207F
analogous
#7F4116 #7F7516 #557F16
triadic
#7F7516 #167F75 #75167F
tetradic
#7F7516 #167F41 #16207F #7F1655
square
#7F7516 #167F41 #16207F #7F1655
split-complementary
#7F7516 #16557F #41167F
monochromatic
#1A1805 #4B450D #7F7516 #B3A51F #DCCC34

Accessibility & contrast

On white

4.71
#7F7516 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7F7516 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7516
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7516#FFFFFF#000000##FFFFFF
##7F75161.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#84751E
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7516;
/* rgb */ color: rgb(127, 117, 22);
/* oklch */ color: oklch(55.5% 0.109 103.0);
Tailwind
colors: {
  custom: {
    50: '#a89c5d',
    500: '#7f7516',
    950: '#000000',
  },
}
SCSS
$custom: #7f7516;
$custom-light: #a89c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7516",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 22
  },
  "hsl": {
    "h": 54.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.55481,
    "c": 0.10912,
    "h": 103
  },
  "luminance": 0.17293
}

Semantic roles & 50–950 ramp

primary
#7F7516
secondary
#3D48B4
accent
#4CED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7516

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

Preview Lab → · Contrast checker → · Palette generator →

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