#7F7E16#7F7E16

#7F7E16 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.118 H 109.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F7E16
RGBrgb(127, 126, 22)
HSLhsl(59, 70%, 29%)
HSVhsv(59, 83%, 50%)
CMYKcmyk(0%, 0.8%, 82.7%, 50.2%)
CIE-LABlab(51.26, -11.78, 51.42)
CIE-LCHlch(51.26, 52.75, 102.90°)
OKLaboklab(57.58% -0.0383 0.1113)
OKLCHoklch(57.58% 0.118 109)
XYZxyz(16.3587, 19.4922, 3.6596)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E16 #16177F
analogous
#7F4A16 #7F7E16 #4C7F16
triadic
#7F7E16 #167F7E #7E167F
tetradic
#7F7E16 #167F4A #16177F #7F164C
square
#7F7E16 #167F4A #16177F #7F164C
split-complementary
#7F7E16 #164C7F #4A167F
monochromatic
#1A1A05 #4B4A0D #7F7E16 #B3B21F #DCDA34

Accessibility & contrast

On white

4.29
#7F7E16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7F7E16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7E16
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7E16#FFFFFF#000000##000000
##7F7E161.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7C20
Tritanopia (blue-blind)
#89756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e16;
/* rgb */ color: rgb(127, 126, 22);
/* oklch */ color: oklch(57.6% 0.118 109.0);
Tailwind
colors: {
  custom: {
    50: '#a8a35e',
    500: '#7f7e16',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e16;
$custom-light: #a8a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e16",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 59.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57578,
    "c": 0.11772,
    "h": 109
  },
  "luminance": 0.19492
}

Semantic roles & 50–950 ramp

primary
#7F7E16
secondary
#3D3EB4
accent
#3CED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7F7E16

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

Preview Lab → · Contrast checker → · Palette generator →

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