#7F7E1C#7F7E1C

#7F7E1C 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#7F7E1C
RGBrgb(127, 126, 28)
HSLhsl(59, 64%, 30%)
HSVhsv(59, 78%, 50%)
CMYKcmyk(0%, 0.8%, 78%, 50.2%)
CIE-LABlab(51.29, -11.54, 49.52)
CIE-LCHlch(51.29, 50.85, 103.12°)
OKLaboklab(57.61% -0.0371 0.1084)
OKLCHoklch(57.61% 0.115 108.9)
XYZxyz(16.4235, 19.5181, 4.0006)
Luminance0.1952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E1C #1C1D7F
analogous
#7F4C1C #7F7E1C #4E7F1C
triadic
#7F7E1C #1C7F7E #7E1C7F
tetradic
#7F7E1C #1C7F4C #1C1D7F #7F1C4E
square
#7F7E1C #1C7F4C #1C1D7F #7F1C4E
split-complementary
#7F7E1C #1C4E7F #4C1C7F
monochromatic
#1B1B06 #4D4C11 #7F7E1C #B1B027 #D5D340

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7E1C#FFFFFF#000000##000000
##7F7E1C1.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)
#897804
Deuteranopia (green-blind)
#8A7C24
Tritanopia (blue-blind)
#89756C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e1c;
/* rgb */ color: rgb(127, 126, 28);
/* oklch */ color: oklch(57.6% 0.115 108.9);
Tailwind
colors: {
  custom: {
    50: '#a7a361',
    500: '#7f7e1c',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e1c;
$custom-light: #a7a361;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e1c",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 59.394,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.57611,
    "c": 0.11462,
    "h": 108.9
  },
  "luminance": 0.19518
}

Semantic roles & 50–950 ramp

primary
#7F7E1C
secondary
#4445B3
accent
#43E741
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7F7E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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