#7F8A18#7F8A18

#7F8A18 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.130 H 115.4°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7F8A18
RGBrgb(127, 138, 24)
HSLhsl(66, 70%, 32%)
HSVhsv(66, 83%, 54%)
CMYKcmyk(8%, 0%, 82.6%, 45.9%)
CIE-LABlab(54.82, -18.09, 53.95)
CIE-LCHlch(54.82, 56.91, 108.54°)
OKLaboklab(60.43% -0.0556 0.1171)
OKLCHoklch(60.43% 0.13 115.4)
XYZxyz(18.0063, 22.7552, 4.3076)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A18 #23188A
analogous
#8A5C18 #7F8A18 #468A18
triadic
#7F8A18 #187F8A #8A187F
tetradic
#7F8A18 #188A5C #23188A #8A1846
square
#7F8A18 #188A5C #23188A #8A1846
split-complementary
#7F8A18 #18468A #5C188A
monochromatic
#1F2206 #4F560F #7F8A18 #AFBE21 #CEDE3F

Accessibility & contrast

On white

3.78
#7F8A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7F8A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A18
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A18#FFFFFF#000000##000000
##7F8A181.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#948424
Tritanopia (blue-blind)
#888175
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a18;
/* rgb */ color: rgb(127, 138, 24);
/* oklch */ color: oklch(60.4% 0.130 115.4);
Tailwind
colors: {
  custom: {
    50: '#a8ac61',
    500: '#7f8a18',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a18;
$custom-light: #a8ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a18",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 65.789,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60433,
    "c": 0.12967,
    "h": 115.4
  },
  "luminance": 0.22755
}

Semantic roles & 50–950 ramp

primary
#7F8A18
secondary
#4C40BD
accent
#3BED4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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