#7F7F1E#7F7F1E

#7F7F1E is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.115 H 109.5°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7F7F1E
RGBrgb(127, 127, 30)
HSLhsl(60, 62%, 31%)
HSVhsv(60, 76%, 50%)
CMYKcmyk(0%, 0%, 76.4%, 50.2%)
CIE-LABlab(51.59, -12.00, 49.11)
CIE-LCHlch(51.59, 50.55, 103.73°)
OKLaboklab(57.86% -0.0382 0.1079)
OKLCHoklch(57.86% 0.115 109.5)
XYZxyz(16.5767, 19.7850, 4.1737)
Luminance0.1978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7F1E #1E1E7F
analogous
#7F4E1E #7F7F1E #4E7F1E
triadic
#7F7F1E #1E7F7F #7F1E7F
tetradic
#7F7F1E #1E7F4E #1E1E7F #7F1E4E
square
#7F7F1E #1E7F4E #1E1E7F #7F1E4E
split-complementary
#7F7F1E #1E4E7F #4E1E7F
monochromatic
#1C1C07 #4D4D12 #7F7F1E #B1B12A #D3D344

Accessibility & contrast

On white

4.24
#7F7F1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7F7F1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7F1E
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7F1E#FFFFFF#000000##000000
##7F7F1E1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7909
Deuteranopia (green-blind)
#8B7C26
Tritanopia (blue-blind)
#88776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7f7f1e;
/* rgb */ color: rgb(127, 127, 30);
/* oklch */ color: oklch(57.9% 0.115 109.5);
Tailwind
colors: {
  custom: {
    50: '#a7a362',
    500: '#7f7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #7f7f1e;
$custom-light: #a7a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7f1e",
  "rgb": {
    "r": 127,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 60,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57858,
    "c": 0.1145,
    "h": 109.5
  },
  "luminance": 0.19785
}

Semantic roles & 50–950 ramp

primary
#7F7F1E
secondary
#4747B2
accent
#43E543
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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