#7F8D0E#7F8D0E

#7F8D0E is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.137 H 116.6°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7F8D0E
RGBrgb(127, 141, 14)
HSLhsl(67, 82%, 30%)
HSVhsv(67, 90%, 55%)
CMYKcmyk(9.9%, 0%, 90.1%, 44.7%)
CIE-LABlab(55.68, -19.94, 57.08)
CIE-LCHlch(55.68, 60.47, 109.26°)
OKLaboklab(61.11% -0.0613 0.1222)
OKLCHoklch(61.11% 0.137 116.6)
XYZxyz(18.3571, 23.5937, 4.0024)
Luminance0.2359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D0E #1C0E8D
analogous
#8D5B0E #7F8D0E #408D0E
triadic
#7F8D0E #0E7F8D #8D0E7F
tetradic
#7F8D0E #0E8D5B #1C0E8D #8D0E40
square
#7F8D0E #0E8D5B #1C0E8D #8D0E40
split-complementary
#7F8D0E #0E408D #5B0E8D
monochromatic
#1B1E03 #4D5508 #7F8D0E #B1C514 #D5EA2B

Accessibility & contrast

On white

3.67
#7F8D0E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7F8D0E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D0E
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D0E#FFFFFF#000000##000000
##7F8D0E1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#96861E
Tritanopia (blue-blind)
#888478
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7f8d0e;
/* rgb */ color: rgb(127, 141, 14);
/* oklch */ color: oklch(61.1% 0.137 116.6);
Tailwind
colors: {
  custom: {
    50: '#a8ae5e',
    500: '#7f8d0e',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d0e;
$custom-light: #a8ae5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d0e",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 14
  },
  "hsl": {
    "h": 66.614,
    "s": 81.935,
    "l": 30.392
  },
  "oklch": {
    "l": 0.61113,
    "c": 0.13675,
    "h": 116.6
  },
  "luminance": 0.23593
}

Semantic roles & 50–950 ramp

primary
#7F8D0E
secondary
#4435C2
accent
#30F846
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7F8D0E

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

Preview Lab → · Contrast checker → · Palette generator →

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