#7F8923#7F8923

#7F8923 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.3% C 0.123 H 115.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7F8923
RGBrgb(127, 137, 35)
HSLhsl(66, 59%, 34%)
HSVhsv(66, 74%, 54%)
CMYKcmyk(7.3%, 0%, 74.5%, 46.3%)
CIE-LABlab(54.58, -17.08, 50.12)
CIE-LCHlch(54.58, 52.95, 108.82°)
OKLaboklab(60.26% -0.0519 0.111)
OKLCHoklch(60.26% 0.123 115.1)
XYZxyz(18.0019, 22.5250, 4.9892)
Luminance0.2253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8923 #2D2389
analogous
#896023 #7F8923 #4C8923
triadic
#7F8923 #237F89 #89237F
tetradic
#7F8923 #238960 #2D2389 #89234C
square
#7F8923 #238960 #2D2389 #89234C
split-complementary
#7F8923 #234C89 #602389
monochromatic
#25280A #525817 #7F8923 #ACBA2F #C7D353

Accessibility & contrast

On white

3.81
#7F8923 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#7F8923 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8923
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8923#FFFFFF#000000##000000
##7F89231.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820F
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#888175
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8923;
/* rgb */ color: rgb(127, 137, 35);
/* oklch */ color: oklch(60.3% 0.123 115.1);
Tailwind
colors: {
  custom: {
    50: '#a7ab66',
    500: '#7f8923',
    950: '#000000',
  },
}
SCSS
$custom: #7f8923;
$custom-light: #a7ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8923",
  "rgb": {
    "r": 127,
    "g": 137,
    "b": 35
  },
  "hsl": {
    "h": 65.882,
    "s": 59.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60259,
    "c": 0.12256,
    "h": 115.1
  },
  "luminance": 0.22525
}

Semantic roles & 50–950 ramp

primary
#7F8923
secondary
#5B51B7
accent
#45E255
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8923

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

Preview Lab → · Contrast checker → · Palette generator →

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