#7F8D14#7F8D14

#7F8D14 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.135 H 116.7°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7F8D14
RGBrgb(127, 141, 20)
HSLhsl(67, 75%, 32%)
HSVhsv(67, 86%, 55%)
CMYKcmyk(9.9%, 0%, 85.8%, 44.7%)
CIE-LABlab(55.70, -19.78, 55.77)
CIE-LCHlch(55.70, 59.18, 109.52°)
OKLaboklab(61.13% -0.0605 0.1203)
OKLCHoklch(61.13% 0.135 116.7)
XYZxyz(18.4041, 23.6125, 4.2498)
Luminance0.2361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D14 #22148D
analogous
#8D5F14 #7F8D14 #438D14
triadic
#7F8D14 #147F8D #8D147F
tetradic
#7F8D14 #148D5F #22148D #8D1443
square
#7F8D14 #148D5F #22148D #8D1443
split-complementary
#7F8D14 #14438D #5F148D
monochromatic
#1E2205 #4F570C #7F8D14 #AFC31C #CFE339

Accessibility & contrast

On white

3.67
#7F8D14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7F8D14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D14
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D14#FFFFFF#000000##000000
##7F8D141.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968622
Tritanopia (blue-blind)
#888478
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7f8d14;
/* rgb */ color: rgb(127, 141, 20);
/* oklch */ color: oklch(61.1% 0.135 116.7);
Tailwind
colors: {
  custom: {
    50: '#a8ae60',
    500: '#7f8d14',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d14;
$custom-light: #a8ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d14",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 20
  },
  "hsl": {
    "h": 66.942,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61134,
    "c": 0.13471,
    "h": 116.7
  },
  "luminance": 0.23612
}

Semantic roles & 50–950 ramp

primary
#7F8D14
secondary
#4B3CC1
accent
#36F24C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8D14

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

Preview Lab → · Contrast checker → · Palette generator →

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