#7F8F18#7F8F18

#7F8F18 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.6% C 0.135 H 117.6°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7F8F18
RGBrgb(127, 143, 24)
HSLhsl(68, 71%, 33%)
HSVhsv(68, 83%, 56%)
CMYKcmyk(11.2%, 0%, 83.2%, 43.9%)
CIE-LABlab(56.31, -20.67, 55.26)
CIE-LCHlch(56.31, 59.00, 110.51°)
OKLaboklab(61.63% -0.0627 0.1199)
OKLCHoklch(61.63% 0.135 117.6)
XYZxyz(18.7402, 24.2231, 4.5523)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8F18 #28188F
analogous
#8F6318 #7F8F18 #448F18
triadic
#7F8F18 #187F8F #8F187F
tetradic
#7F8F18 #188F63 #28188F #8F1844
square
#7F8F18 #188F63 #28188F #8F1844
split-complementary
#7F8F18 #18448F #63188F
monochromatic
#222606 #505B0F #7F8F18 #AEC321 #CADF42

Accessibility & contrast

On white

3.59
#7F8F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#7F8F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8F18
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8F18#FFFFFF#000000##000000
##7F8F181.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#988825
Tritanopia (blue-blind)
#87877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7f8f18;
/* rgb */ color: rgb(127, 143, 24);
/* oklch */ color: oklch(61.6% 0.135 117.6);
Tailwind
colors: {
  custom: {
    50: '#a8af62',
    500: '#7f8f18',
    950: '#000000',
  },
}
SCSS
$custom: #7f8f18;
$custom-light: #a8af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8f18",
  "rgb": {
    "r": 127,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 68.067,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61632,
    "c": 0.13534,
    "h": 117.6
  },
  "luminance": 0.24223
}

Semantic roles & 50–950 ramp

primary
#7F8F18
secondary
#5443C0
accent
#3AEE52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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