#7F7E1B#7F7E1B

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

Color values

HEX#7F7E1B
RGBrgb(127, 126, 27)
HSLhsl(59, 65%, 30%)
HSVhsv(59, 79%, 50%)
CMYKcmyk(0%, 0.8%, 78.7%, 50.2%)
CIE-LABlab(51.28, -11.59, 49.86)
CIE-LCHlch(51.28, 51.19, 103.08°)
OKLaboklab(57.61% -0.0374 0.109)
OKLCHoklch(57.61% 0.115 108.9)
XYZxyz(16.4117, 19.5134, 3.9387)
Luminance0.1951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E1B #1B1C7F
analogous
#7F4C1B #7F7E1B #4E7F1B
triadic
#7F7E1B #1B7F7E #7E1B7F
tetradic
#7F7E1B #1B7F4C #1B1C7F #7F1B4E
square
#7F7E1B #1B7F4C #1B1C7F #7F1B4E
split-complementary
#7F7E1B #1B4E7F #4C1B7F
monochromatic
#1A1A06 #4D4C10 #7F7E1B #B1B026 #D6D53E

Accessibility & contrast

On white

4.28
#7F7E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7E1B#FFFFFF#000000##000000
##7F7E1B1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897802
Deuteranopia (green-blind)
#8A7C23
Tritanopia (blue-blind)
#89756C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e1b;
/* rgb */ color: rgb(127, 126, 27);
/* oklch */ color: oklch(57.6% 0.115 108.9);
Tailwind
colors: {
  custom: {
    50: '#a7a361',
    500: '#7f7e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e1b;
$custom-light: #a7a361;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e1b",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 59.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.57605,
    "c": 0.11518,
    "h": 108.9
  },
  "luminance": 0.19513
}

Semantic roles & 50–950 ramp

primary
#7F7E1B
secondary
#4344B3
accent
#42E840
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7F7E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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