#7F7B22#7F7B22

#7F7B22 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 57.0% C 0.108 H 106.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F7B22
RGBrgb(127, 123, 34)
HSLhsl(57, 58%, 32%)
HSVhsv(57, 73%, 50%)
CMYKcmyk(0%, 3.1%, 73.2%, 50.2%)
CIE-LABlab(50.45, -9.61, 46.50)
CIE-LCHlch(50.45, 47.48, 101.68°)
OKLaboklab(56.95% -0.0311 0.1032)
OKLCHoklch(56.95% 0.108 106.8)
XYZxyz(16.1247, 18.7940, 4.2913)
Luminance0.1879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7B22 #22267F
analogous
#7F4D22 #7F7B22 #557F22
triadic
#7F7B22 #227F7B #7B227F
tetradic
#7F7B22 #227F4D #22267F #7F2255
square
#7F7B22 #227F4D #22267F #7F2255
split-complementary
#7F7B22 #22557F #4D227F
monochromatic
#1E1D08 #4F4C15 #7F7B22 #AFAA2F #CFCA4C

Accessibility & contrast

On white

4.41
#7F7B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7F7B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7B22
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7B22#FFFFFF#000000##000000
##7F7B221.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#867613
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#89736A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f7b22;
/* rgb */ color: rgb(127, 123, 34);
/* oklch */ color: oklch(57.0% 0.108 106.8);
Tailwind
colors: {
  custom: {
    50: '#a7a064',
    500: '#7f7b22',
    950: '#000000',
  },
}
SCSS
$custom: #7f7b22;
$custom-light: #a7a064;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7b22",
  "rgb": {
    "r": 127,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 57.419,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5695,
    "c": 0.10779,
    "h": 106.8
  },
  "luminance": 0.18793
}

Semantic roles & 50–950 ramp

primary
#7F7B22
secondary
#4B50B2
accent
#4DE147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7F7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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