#7F7F1A#7F7F1A

#7F7F1A is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.8% C 0.117 H 109.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7F7F1A
RGBrgb(127, 127, 26)
HSLhsl(60, 66%, 30%)
HSVhsv(60, 80%, 50%)
CMYKcmyk(0%, 0%, 79.5%, 50.2%)
CIE-LABlab(51.57, -12.17, 50.45)
CIE-LCHlch(51.57, 51.90, 103.56°)
OKLaboklab(57.83% -0.0391 0.11)
OKLCHoklch(57.83% 0.117 109.6)
XYZxyz(16.5288, 19.7659, 3.9216)
Luminance0.1976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7F1A #1A1A7F
analogous
#7F4C1A #7F7F1A #4D7F1A
triadic
#7F7F1A #1A7F7F #7F1A7F
tetradic
#7F7F1A #1A7F4D #1A1A7F #7F1A4D
square
#7F7F1A #1A7F4D #1A1A7F #7F1A4D
split-complementary
#7F7F1A #1A4C7F #4C1A7F
monochromatic
#191905 #4C4C10 #7F7F1A #B2B224 #D7D73C

Accessibility & contrast

On white

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

On black

4.95
#7F7F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7F1A
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7F1A#FFFFFF#000000##000000
##7F7F1A1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8B7C23
Tritanopia (blue-blind)
#89766C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7f7f1a;
/* rgb */ color: rgb(127, 127, 26);
/* oklch */ color: oklch(57.8% 0.117 109.6);
Tailwind
colors: {
  custom: {
    50: '#a7a360',
    500: '#7f7f1a',
    950: '#000000',
  },
}
SCSS
$custom: #7f7f1a;
$custom-light: #a7a360;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7f1a",
  "rgb": {
    "r": 127,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 60,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.57834,
    "c": 0.11675,
    "h": 109.6
  },
  "luminance": 0.19765
}

Semantic roles & 50–950 ramp

primary
#7F7F1A
secondary
#4242B3
accent
#3FE93F
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F7F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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