#7F8523#7F8523

#7F8523 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.3% C 0.118 H 113.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7F8523
RGBrgb(127, 133, 35)
HSLhsl(64, 58%, 33%)
HSVhsv(64, 74%, 52%)
CMYKcmyk(4.5%, 0%, 73.7%, 47.8%)
CIE-LABlab(53.39, -14.97, 48.98)
CIE-LCHlch(53.39, 51.21, 106.99°)
OKLaboklab(59.31% -0.046 0.1086)
OKLCHoklch(59.31% 0.118 113)
XYZxyz(17.4438, 21.4088, 4.8032)
Luminance0.2141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8523 #292385
analogous
#855A23 #7F8523 #4E8523
triadic
#7F8523 #237F85 #85237F
tetradic
#7F8523 #23855A #292385 #85234E
square
#7F8523 #23855A #292385 #85234E
split-complementary
#7F8523 #234E85 #5A2385
monochromatic
#222409 #515516 #7F8523 #ADB530 #C9D151

Accessibility & contrast

On white

3.98
#7F8523 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#7F8523 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8523
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8523#FFFFFF#000000##000000
##7F85231.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E11
Deuteranopia (green-blind)
#8F812B
Tritanopia (blue-blind)
#887D72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8523;
/* rgb */ color: rgb(127, 133, 35);
/* oklch */ color: oklch(59.3% 0.118 113.0);
Tailwind
colors: {
  custom: {
    50: '#a7a865',
    500: '#7f8523',
    950: '#000000',
  },
}
SCSS
$custom: #7f8523;
$custom-light: #a7a865;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8523",
  "rgb": {
    "r": 127,
    "g": 133,
    "b": 35
  },
  "hsl": {
    "h": 63.673,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59309,
    "c": 0.11796,
    "h": 113
  },
  "luminance": 0.21408
}

Semantic roles & 50–950 ramp

primary
#7F8523
secondary
#554FB5
accent
#46E250
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8523

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

Preview Lab → · Contrast checker → · Palette generator →

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