#7F7621#7F7621

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

Color values

HEX#7F7621
RGBrgb(127, 118, 33)
HSLhsl(54, 59%, 31%)
HSVhsv(54, 74%, 50%)
CMYKcmyk(0%, 7.1%, 74%, 50.2%)
CIE-LABlab(48.98, -6.89, 45.47)
CIE-LCHlch(48.98, 45.99, 98.61°)
OKLaboklab(55.78% -0.0236 0.1008)
OKLCHoklch(55.78% 0.104 103.2)
XYZxyz(15.5060, 17.5793, 4.0149)
Luminance0.1758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7621 #212A7F
analogous
#7F4721 #7F7621 #597F21
triadic
#7F7621 #217F76 #76217F
tetradic
#7F7621 #217F47 #212A7F #7F2159
square
#7F7621 #217F47 #212A7F #7F2159
split-complementary
#7F7621 #21597F #47217F
monochromatic
#1E1C08 #4E4914 #7F7621 #B0A32E #D0C34A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7621#FFFFFF#000000##FFFFFF
##7F76211.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)
#817213
Deuteranopia (green-blind)
#847627
Tritanopia (blue-blind)
#896D65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f7621;
/* rgb */ color: rgb(127, 118, 33);
/* oklch */ color: oklch(55.8% 0.104 103.2);
Tailwind
colors: {
  custom: {
    50: '#a79d63',
    500: '#7f7621',
    950: '#000000',
  },
}
SCSS
$custom: #7f7621;
$custom-light: #a79d63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7621",
  "rgb": {
    "r": 127,
    "g": 118,
    "b": 33
  },
  "hsl": {
    "h": 54.255,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55783,
    "c": 0.10354,
    "h": 103.2
  },
  "luminance": 0.17579
}

Semantic roles & 50–950 ramp

primary
#7F7621
secondary
#4A54B2
accent
#55E246
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7621

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

Preview Lab → · Contrast checker → · Palette generator →

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