#7F8B18#7F8B18

#7F8B18 is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.7% C 0.131 H 115.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7F8B18
RGBrgb(127, 139, 24)
HSLhsl(66, 71%, 32%)
HSVhsv(66, 83%, 55%)
CMYKcmyk(8.6%, 0%, 82.7%, 45.5%)
CIE-LABlab(55.12, -18.61, 54.21)
CIE-LCHlch(55.12, 57.32, 108.95°)
OKLaboklab(60.67% -0.0571 0.1177)
OKLCHoklch(60.67% 0.131 115.9)
XYZxyz(18.1504, 23.0435, 4.3557)
Luminance0.2304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8B18 #24188B
analogous
#8B5E18 #7F8B18 #468B18
triadic
#7F8B18 #187F8B #8B187F
tetradic
#7F8B18 #188B5E #24188B #8B1846
square
#7F8B18 #188B5E #24188B #8B1846
split-complementary
#7F8B18 #18468B #5E188B
monochromatic
#202306 #4F570F #7F8B18 #AFBF21 #CDDE3F

Accessibility & contrast

On white

3.74
#7F8B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#7F8B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8B18
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8B18#FFFFFF#000000##000000
##7F8B181.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948524
Tritanopia (blue-blind)
#888276
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8b18;
/* rgb */ color: rgb(127, 139, 24);
/* oklch */ color: oklch(60.7% 0.131 115.9);
Tailwind
colors: {
  custom: {
    50: '#a8ac61',
    500: '#7f8b18',
    950: '#000000',
  },
}
SCSS
$custom: #7f8b18;
$custom-light: #a8ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8b18",
  "rgb": {
    "r": 127,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 66.261,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60672,
    "c": 0.13079,
    "h": 115.9
  },
  "luminance": 0.23043
}

Semantic roles & 50–950 ramp

primary
#7F8B18
secondary
#4E40BE
accent
#3AED4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8B18

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

Preview Lab → · Contrast checker → · Palette generator →

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