#7F8918#7F8918

#7F8918 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.129 H 114.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7F8918
RGBrgb(127, 137, 24)
HSLhsl(65, 70%, 32%)
HSVhsv(65, 82%, 54%)
CMYKcmyk(7.3%, 0%, 82.5%, 46.3%)
CIE-LABlab(54.52, -17.57, 53.69)
CIE-LCHlch(54.52, 56.49, 108.12°)
OKLaboklab(60.19% -0.0542 0.1166)
OKLCHoklch(60.19% 0.129 114.9)
XYZxyz(17.8635, 22.4696, 4.2600)
Luminance0.2247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8918 #221889
analogous
#895B18 #7F8918 #478918
triadic
#7F8918 #187F89 #89187F
tetradic
#7F8918 #18895B #221889 #891847
square
#7F8918 #18895B #221889 #891847
split-complementary
#7F8918 #184789 #5B1889
monochromatic
#1E2106 #4F550F #7F8918 #AFBD21 #CFDD3E

Accessibility & contrast

On white

3.82
#7F8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7F8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8918
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8918#FFFFFF#000000##000000
##7F89181.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#938323
Tritanopia (blue-blind)
#888075
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7f8918;
/* rgb */ color: rgb(127, 137, 24);
/* oklch */ color: oklch(60.2% 0.129 114.9);
Tailwind
colors: {
  custom: {
    50: '#a8ab61',
    500: '#7f8918',
    950: '#000000',
  },
}
SCSS
$custom: #7f8918;
$custom-light: #a8ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8918",
  "rgb": {
    "r": 127,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 65.31,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60194,
    "c": 0.12855,
    "h": 114.9
  },
  "luminance": 0.22469
}

Semantic roles & 50–950 ramp

primary
#7F8918
secondary
#4B40BD
accent
#3BED4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8918

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

Preview Lab → · Contrast checker → · Palette generator →

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