#7F8F1B#7F8F1B

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

Color values

HEX#7F8F1B
RGBrgb(127, 143, 27)
HSLhsl(68, 68%, 33%)
HSVhsv(68, 81%, 56%)
CMYKcmyk(11.2%, 0%, 81.1%, 43.9%)
CIE-LABlab(56.32, -20.55, 54.41)
CIE-LCHlch(56.32, 58.16, 110.69°)
OKLaboklab(61.65% -0.0622 0.1187)
OKLCHoklch(61.65% 0.134 117.7)
XYZxyz(18.7732, 24.2363, 4.7258)
Luminance0.2424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8F1B #2B1B8F
analogous
#8F651B #7F8F1B #458F1B
triadic
#7F8F1B #1B7F8F #8F1B7F
tetradic
#7F8F1B #1B8F65 #2B1B8F #8F1B45
square
#7F8F1B #1B8F65 #2B1B8F #8F1B45
split-complementary
#7F8F1B #1B458F #651B8F
monochromatic
#242808 #515C11 #7F8F1B #ADC225 #C8DC48

Accessibility & contrast

On white

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

On black

5.85
#7F8F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8F1B
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8F1B#FFFFFF#000000##000000
##7F8F1B1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8f1b;
/* rgb */ color: rgb(127, 143, 27);
/* oklch */ color: oklch(61.6% 0.134 117.7);
Tailwind
colors: {
  custom: {
    50: '#a8af63',
    500: '#7f8f1b',
    950: '#000000',
  },
}
SCSS
$custom: #7f8f1b;
$custom-light: #a8af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8f1b",
  "rgb": {
    "r": 127,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 68.276,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61646,
    "c": 0.13396,
    "h": 117.7
  },
  "luminance": 0.24236
}

Semantic roles & 50–950 ramp

primary
#7F8F1B
secondary
#5848BE
accent
#3DEB55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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