#7F8D1C#7F8D1C

#7F8D1C is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.2% C 0.131 H 116.8°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7F8D1C
RGBrgb(127, 141, 28)
HSLhsl(67, 67%, 33%)
HSVhsv(67, 80%, 55%)
CMYKcmyk(9.9%, 0%, 80.1%, 44.7%)
CIE-LABlab(55.73, -19.49, 53.57)
CIE-LCHlch(55.73, 57.01, 109.99°)
OKLaboklab(61.17% -0.0592 0.1171)
OKLCHoklch(61.17% 0.131 116.8)
XYZxyz(18.4874, 23.6459, 4.6886)
Luminance0.2365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D1C #2A1C8D
analogous
#8D621C #7F8D1C #468D1C
triadic
#7F8D1C #1C7F8D #8D1C7F
tetradic
#7F8D1C #1C8D62 #2A1C8D #8D1C46
square
#7F8D1C #1C8D62 #2A1C8D #8D1C46
split-complementary
#7F8D1C #1C468D #621C8D
monochromatic
#232708 #515A12 #7F8D1C #ADC026 #C9DB49

Accessibility & contrast

On white

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

On black

5.73
#7F8D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D1C
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D1C#FFFFFF#000000##000000
##7F8D1C1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8d1c;
/* rgb */ color: rgb(127, 141, 28);
/* oklch */ color: oklch(61.2% 0.131 116.8);
Tailwind
colors: {
  custom: {
    50: '#a7ae63',
    500: '#7f8d1c',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d1c;
$custom-light: #a7ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d1c",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 67.434,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61172,
    "c": 0.13116,
    "h": 116.8
  },
  "luminance": 0.23646
}

Semantic roles & 50–950 ramp

primary
#7F8D1C
secondary
#5748BD
accent
#3EEA53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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