#7F8623#7F8623

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

Color values

HEX#7F8623
RGBrgb(127, 134, 35)
HSLhsl(64, 59%, 33%)
HSVhsv(64, 74%, 53%)
CMYKcmyk(5.2%, 0%, 73.9%, 47.5%)
CIE-LABlab(53.69, -15.50, 49.26)
CIE-LCHlch(53.69, 51.64, 107.46°)
OKLaboklab(59.55% -0.0475 0.1092)
OKLCHoklch(59.55% 0.119 113.5)
XYZxyz(17.5814, 21.6839, 4.8490)
Luminance0.2168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8623 #2A2386
analogous
#865B23 #7F8623 #4E8623
triadic
#7F8623 #237F86 #86237F
tetradic
#7F8623 #23865B #2A2386 #86234E
square
#7F8623 #23865B #2A2386 #86234E
split-complementary
#7F8623 #234E86 #5B2386
monochromatic
#23250A #515516 #7F8623 #ADB730 #C9D252

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8623#FFFFFF#000000##000000
##7F86231.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)
#907F10
Deuteranopia (green-blind)
#90812B
Tritanopia (blue-blind)
#887E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8623;
/* rgb */ color: rgb(127, 134, 35);
/* oklch */ color: oklch(59.5% 0.119 113.5);
Tailwind
colors: {
  custom: {
    50: '#a7a965',
    500: '#7f8623',
    950: '#000000',
  },
}
SCSS
$custom: #7f8623;
$custom-light: #a7a965;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8623",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 35
  },
  "hsl": {
    "h": 64.242,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59546,
    "c": 0.1191,
    "h": 113.5
  },
  "luminance": 0.21684
}

Semantic roles & 50–950 ramp

primary
#7F8623
secondary
#574FB5
accent
#46E251
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8623

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

Preview Lab → · Contrast checker → · Palette generator →

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