#7F8E1B#7F8E1B

#7F8E1B is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.4% C 0.133 H 117.2°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7F8E1B
RGBrgb(127, 142, 27)
HSLhsl(68, 68%, 33%)
HSVhsv(68, 81%, 56%)
CMYKcmyk(10.6%, 0%, 81%, 44.3%)
CIE-LABlab(56.03, -20.04, 54.14)
CIE-LCHlch(56.03, 57.73, 110.31°)
OKLaboklab(61.41% -0.0608 0.1181)
OKLCHoklch(61.41% 0.133 117.2)
XYZxyz(18.6237, 23.9374, 4.6760)
Luminance0.2394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8E1B #2A1B8E
analogous
#8E631B #7F8E1B #458E1B
triadic
#7F8E1B #1B7F8E #8E1B7F
tetradic
#7F8E1B #1B8E63 #2A1B8E #8E1B45
square
#7F8E1B #1B8E63 #2A1B8E #8E1B45
split-complementary
#7F8E1B #1B458E #631B8E
monochromatic
#232707 #515B11 #7F8E1B #ADC125 #C9DC47

Accessibility & contrast

On white

3.63
#7F8E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#7F8E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8E1B
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8E1B#FFFFFF#000000##000000
##7F8E1B1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#978726
Tritanopia (blue-blind)
#878679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8e1b;
/* rgb */ color: rgb(127, 142, 27);
/* oklch */ color: oklch(61.4% 0.133 117.2);
Tailwind
colors: {
  custom: {
    50: '#a8af63',
    500: '#7f8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7f8e1b;
$custom-light: #a8af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8e1b",
  "rgb": {
    "r": 127,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 67.826,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61406,
    "c": 0.1328,
    "h": 117.2
  },
  "luminance": 0.23937
}

Semantic roles & 50–950 ramp

primary
#7F8E1B
secondary
#5747BE
accent
#3DEB54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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