#7F8423#7F8423

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

Color values

HEX#7F8423
RGBrgb(127, 132, 35)
HSLhsl(63, 58%, 33%)
HSVhsv(63, 73%, 52%)
CMYKcmyk(3.8%, 0%, 73.5%, 48.2%)
CIE-LABlab(53.10, -14.44, 48.69)
CIE-LCHlch(53.10, 50.79, 106.51°)
OKLaboklab(59.07% -0.0445 0.108)
OKLCHoklch(59.07% 0.117 112.4)
XYZxyz(17.3076, 21.1363, 4.7578)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8423 #282384
analogous
#845923 #7F8423 #4E8423
triadic
#7F8423 #237F84 #84237F
tetradic
#7F8423 #238459 #282384 #84234E
square
#7F8423 #238459 #282384 #84234E
split-complementary
#7F8423 #234E84 #592384
monochromatic
#222309 #505416 #7F8423 #AEB430 #CAD151

Accessibility & contrast

On white

4.02
#7F8423 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8423#FFFFFF#000000##000000
##7F84231.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8423;
/* rgb */ color: rgb(127, 132, 35);
/* oklch */ color: oklch(59.1% 0.117 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a765',
    500: '#7f8423',
    950: '#000000',
  },
}
SCSS
$custom: #7f8423;
$custom-light: #a7a765;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8423",
  "rgb": {
    "r": 127,
    "g": 132,
    "b": 35
  },
  "hsl": {
    "h": 63.093,
    "s": 58.084,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59072,
    "c": 0.11683,
    "h": 112.4
  },
  "luminance": 0.21136
}

Semantic roles & 50–950 ramp

primary
#7F8423
secondary
#544EB4
accent
#46E14E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8423

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

Preview Lab → · Contrast checker → · Palette generator →

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