#7F8418#7F8418

#7F8418 is a mid, vivid yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.123 H 112.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7F8418
RGBrgb(127, 132, 24)
HSLhsl(63, 69%, 31%)
HSVhsv(63, 82%, 52%)
CMYKcmyk(3.8%, 0%, 81.8%, 48.2%)
CIE-LABlab(53.04, -14.93, 52.39)
CIE-LCHlch(53.04, 54.47, 105.91°)
OKLaboklab(59% -0.0469 0.1138)
OKLCHoklch(59% 0.123 112.4)
XYZxyz(17.1691, 21.0809, 4.0286)
Luminance0.2108 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8418 #1D1884
analogous
#845318 #7F8418 #498418
triadic
#7F8418 #187F84 #84187F
tetradic
#7F8418 #188453 #1D1884 #841849
square
#7F8418 #188453 #1D1884 #841849
split-complementary
#7F8418 #184984 #531884
monochromatic
#1B1C05 #4D500F #7F8418 #B1B821 #D4DB3B

Accessibility & contrast

On white

4.03
#7F8418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7F8418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8418
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8418#FFFFFF#000000##000000
##7F84181.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#887B70
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f8418;
/* rgb */ color: rgb(127, 132, 24);
/* oklch */ color: oklch(59.0% 0.123 112.4);
Tailwind
colors: {
  custom: {
    50: '#a8a760',
    500: '#7f8418',
    950: '#000000',
  },
}
SCSS
$custom: #7f8418;
$custom-light: #a8a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8418",
  "rgb": {
    "r": 127,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 62.778,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.59004,
    "c": 0.12307,
    "h": 112.4
  },
  "luminance": 0.21081
}

Semantic roles & 50–950 ramp

primary
#7F8418
secondary
#4540B8
accent
#3CEC44
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F8418

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

Preview Lab → · Contrast checker → · Palette generator →

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