#7F8A1C#7F8A1C

#7F8A1C is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.128 H 115.5°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7F8A1C
RGBrgb(127, 138, 28)
HSLhsl(66, 66%, 33%)
HSVhsv(66, 80%, 54%)
CMYKcmyk(8%, 0%, 79.7%, 45.9%)
CIE-LABlab(54.84, -17.93, 52.77)
CIE-LCHlch(54.84, 55.73, 108.77°)
OKLaboklab(60.45% -0.0549 0.1153)
OKLCHoklch(60.45% 0.128 115.5)
XYZxyz(18.0510, 22.7731, 4.5431)
Luminance0.2277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A1C #271C8A
analogous
#8A5E1C #7F8A1C #488A1C
triadic
#7F8A1C #1C7F8A #8A1C7F
tetradic
#7F8A1C #1C8A5E #271C8A #8A1C48
square
#7F8A1C #1C8A5E #271C8A #8A1C48
split-complementary
#7F8A1C #1C488A #5E1C8A
monochromatic
#212407 #505712 #7F8A1C #AEBD26 #CBDA47

Accessibility & contrast

On white

3.78
#7F8A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7F8A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A1C
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A1C#FFFFFF#000000##000000
##7F8A1C1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948300
Deuteranopia (green-blind)
#948426
Tritanopia (blue-blind)
#888276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a1c;
/* rgb */ color: rgb(127, 138, 28);
/* oklch */ color: oklch(60.5% 0.128 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac63',
    500: '#7f8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a1c;
$custom-light: #a7ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a1c",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 66,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60454,
    "c": 0.12773,
    "h": 115.5
  },
  "luminance": 0.22773
}

Semantic roles & 50–950 ramp

primary
#7F8A1C
secondary
#5246BB
accent
#3FE950
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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