#7F7622#7F7622

#7F7622 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.8% C 0.103 H 103.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F7622
RGBrgb(127, 118, 34)
HSLhsl(54, 58%, 32%)
HSVhsv(54, 73%, 50%)
CMYKcmyk(0%, 7.1%, 73.2%, 50.2%)
CIE-LABlab(48.99, -6.83, 45.07)
CIE-LCHlch(48.99, 45.59, 98.62°)
OKLaboklab(55.79% -0.0233 0.1002)
OKLCHoklch(55.79% 0.103 103.1)
XYZxyz(15.5202, 17.5850, 4.0898)
Luminance0.1758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7622 #222B7F
analogous
#7F4822 #7F7622 #5A7F22
triadic
#7F7622 #227F76 #76227F
tetradic
#7F7622 #227F48 #222B7F #7F225A
square
#7F7622 #227F48 #222B7F #7F225A
split-complementary
#7F7622 #225A7F #48227F
monochromatic
#1E1C08 #4F4915 #7F7622 #AFA32F #CFC24C

Accessibility & contrast

On white

4.65
#7F7622 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7F7622 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7622
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7622#FFFFFF#000000##FFFFFF
##7F76221.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817215
Deuteranopia (green-blind)
#847628
Tritanopia (blue-blind)
#896D65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f7622;
/* rgb */ color: rgb(127, 118, 34);
/* oklch */ color: oklch(55.8% 0.103 103.1);
Tailwind
colors: {
  custom: {
    50: '#a79d63',
    500: '#7f7622',
    950: '#000000',
  },
}
SCSS
$custom: #7f7622;
$custom-light: #a79d63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7622",
  "rgb": {
    "r": 127,
    "g": 118,
    "b": 34
  },
  "hsl": {
    "h": 54.194,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55791,
    "c": 0.10285,
    "h": 103.1
  },
  "luminance": 0.17584
}

Semantic roles & 50–950 ramp

primary
#7F7622
secondary
#4B55B2
accent
#56E147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7622

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

Preview Lab → · Contrast checker → · Palette generator →

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