#7F8427#7F8427

#7F8427 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.1% C 0.114 H 112.4°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7F8427
RGBrgb(127, 132, 39)
HSLhsl(63, 54%, 34%)
HSVhsv(63, 70%, 52%)
CMYKcmyk(3.8%, 0%, 70.5%, 48.2%)
CIE-LABlab(53.13, -14.21, 47.14)
CIE-LCHlch(53.13, 49.24, 106.78°)
OKLaboklab(59.1% -0.0435 0.1055)
OKLCHoklch(59.1% 0.114 112.4)
XYZxyz(17.3704, 21.1614, 5.0886)
Luminance0.2116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8427 #2C2784
analogous
#845A27 #7F8427 #508427
triadic
#7F8427 #277F84 #84277F
tetradic
#7F8427 #27845A #2C2784 #842750
square
#7F8427 #27845A #2C2784 #842750
split-complementary
#7F8427 #275084 #5A2784
monochromatic
#24260B #525519 #7F8427 #ACB335 #C7CE58

Accessibility & contrast

On white

4.01
#7F8427 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#7F8427 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8427
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8427#FFFFFF#000000##000000
##7F84271.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E18
Deuteranopia (green-blind)
#8E802E
Tritanopia (blue-blind)
#887C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f8427;
/* rgb */ color: rgb(127, 132, 39);
/* oklch */ color: oklch(59.1% 0.114 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a767',
    500: '#7f8427',
    950: '#000000',
  },
}
SCSS
$custom: #7f8427;
$custom-light: #a7a767;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8427",
  "rgb": {
    "r": 127,
    "g": 132,
    "b": 39
  },
  "hsl": {
    "h": 63.226,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59103,
    "c": 0.11408,
    "h": 112.4
  },
  "luminance": 0.21161
}

Semantic roles & 50–950 ramp

primary
#7F8427
secondary
#5954B2
accent
#4ADE52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8427

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

Preview Lab → · Contrast checker → · Palette generator →

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