#7F8518#7F8518

#7F8518 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.124 H 112.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7F8518
RGBrgb(127, 133, 24)
HSLhsl(63, 69%, 31%)
HSVhsv(63, 82%, 52%)
CMYKcmyk(4.5%, 0%, 82%, 47.8%)
CIE-LABlab(53.33, -15.46, 52.65)
CIE-LCHlch(53.33, 54.87, 106.37°)
OKLaboklab(59.24% -0.0484 0.1143)
OKLCHoklch(59.24% 0.124 112.9)
XYZxyz(17.3054, 21.3534, 4.0740)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8518 #1E1885
analogous
#855418 #7F8518 #488518
triadic
#7F8518 #187F85 #85187F
tetradic
#7F8518 #188554 #1E1885 #851848
square
#7F8518 #188554 #1E1885 #851848
split-complementary
#7F8518 #184885 #541885
monochromatic
#1C1D05 #4D510F #7F8518 #B1B921 #D3DC3C

Accessibility & contrast

On white

3.98
#7F8518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7F8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8518
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8518#FFFFFF#000000##000000
##7F85181.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#908023
Tritanopia (blue-blind)
#887C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f8518;
/* rgb */ color: rgb(127, 133, 24);
/* oklch */ color: oklch(59.2% 0.124 112.9);
Tailwind
colors: {
  custom: {
    50: '#a8a860',
    500: '#7f8518',
    950: '#000000',
  },
}
SCSS
$custom: #7f8518;
$custom-light: #a8a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8518",
  "rgb": {
    "r": 127,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 63.303,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59242,
    "c": 0.12414,
    "h": 112.9
  },
  "luminance": 0.21353
}

Semantic roles & 50–950 ramp

primary
#7F8518
secondary
#4740B9
accent
#3CEC45
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F8518

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

Preview Lab → · Contrast checker → · Palette generator →

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