#7F8628#7F8628

#7F8628 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.6% C 0.116 H 113.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7F8628
RGBrgb(127, 134, 40)
HSLhsl(64, 54%, 34%)
HSVhsv(64, 70%, 53%)
CMYKcmyk(5.2%, 0%, 70.1%, 47.5%)
CIE-LABlab(53.72, -15.22, 47.34)
CIE-LCHlch(53.72, 49.72, 107.82°)
OKLaboklab(59.58% -0.0462 0.106)
OKLCHoklch(59.58% 0.116 113.6)
XYZxyz(17.6610, 21.7158, 5.2683)
Luminance0.2172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8628 #2F2886
analogous
#865E28 #7F8628 #508628
triadic
#7F8628 #287F86 #86287F
tetradic
#7F8628 #28865E #2F2886 #862850
square
#7F8628 #28865E #2F2886 #862850
split-complementary
#7F8628 #285086 #5E2886
monochromatic
#26280C #52571A #7F8628 #ACB536 #C5CE5B

Accessibility & contrast

On white

3.93
#7F8628 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7F8628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8628
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8628#FFFFFF#000000##000000
##7F86281.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F1A
Deuteranopia (green-blind)
#90812F
Tritanopia (blue-blind)
#887E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8628;
/* rgb */ color: rgb(127, 134, 40);
/* oklch */ color: oklch(59.6% 0.116 113.6);
Tailwind
colors: {
  custom: {
    50: '#a7a968',
    500: '#7f8628',
    950: '#000000',
  },
}
SCSS
$custom: #7f8628;
$custom-light: #a7a968;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8628",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 40
  },
  "hsl": {
    "h": 64.468,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59584,
    "c": 0.11568,
    "h": 113.6
  },
  "luminance": 0.21715
}

Semantic roles & 50–950 ramp

primary
#7F8628
secondary
#5E57B3
accent
#4ADD55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8628

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

Preview Lab → · Contrast checker → · Palette generator →

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