#7A7217#7A7217

#7A7217 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.106 H 104.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7A7217
RGBrgb(122, 114, 23)
HSLhsl(55, 68%, 28%)
HSVhsv(55, 81%, 48%)
CMYKcmyk(0%, 6.6%, 81.1%, 52.2%)
CIE-LABlab(47.28, -7.46, 47.41)
CIE-LCHlch(47.28, 47.99, 98.94°)
OKLaboklab(54.3% -0.0259 0.1031)
OKLCHoklch(54.3% 0.106 104.1)
XYZxyz(14.1986, 16.2347, 3.1961)
Luminance0.1623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7217 #171F7A
analogous
#7A4017 #7A7217 #507A17
triadic
#7A7217 #177A72 #72177A
tetradic
#7A7217 #177A40 #171F7A #7A1750
square
#7A7217 #177A40 #171F7A #7A1750
split-complementary
#7A7217 #17507A #40177A
monochromatic
#1A1805 #47420D #7A7217 #ADA221 #D9CB33

Accessibility & contrast

On white

4.94
#7A7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7A7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A7217
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7217#FFFFFF#000000##FFFFFF
##7A72171.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E01
Deuteranopia (green-blind)
#80721E
Tritanopia (blue-blind)
#846961
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a7217;
/* rgb */ color: rgb(122, 114, 23);
/* oklch */ color: oklch(54.3% 0.106 104.1);
Tailwind
colors: {
  custom: {
    50: '#a49a5d',
    500: '#7a7217',
    950: '#000000',
  },
}
SCSS
$custom: #7a7217;
$custom-light: #a49a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7217",
  "rgb": {
    "r": 122,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 55.152,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54298,
    "c": 0.10634,
    "h": 104.1
  },
  "luminance": 0.16234
}

Semantic roles & 50–950 ramp

primary
#7A7217
secondary
#3E47AF
accent
#4BEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A7217

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

Preview Lab → · Contrast checker → · Palette generator →

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