#7A8522#7A8522

#7A8522 is a mid, vivid yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.120 H 115.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7A8522
RGBrgb(122, 133, 34)
HSLhsl(67, 59%, 33%)
HSVhsv(67, 74%, 52%)
CMYKcmyk(8.3%, 0%, 74.4%, 47.8%)
CIE-LABlab(52.98, -17.27, 48.81)
CIE-LCHlch(52.98, 51.78, 109.48°)
OKLaboklab(58.87% -0.0522 0.1083)
OKLCHoklch(58.87% 0.12 115.8)
XYZxyz(16.7027, 21.0284, 4.6921)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8522 #2D2285
analogous
#855F22 #7A8522 #488522
triadic
#7A8522 #227A85 #85227A
tetradic
#7A8522 #22855F #2D2285 #852248
square
#7A8522 #22855F #2D2285 #852248
split-complementary
#7A8522 #224885 #5F2285
monochromatic
#212409 #4D5416 #7A8522 #A7B62E #C4D24F

Accessibility & contrast

On white

4.03
#7A8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#7A8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8522
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8522#FFFFFF#000000##000000
##7A85221.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0F
Deuteranopia (green-blind)
#8E7F2A
Tritanopia (blue-blind)
#827D72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7a8522;
/* rgb */ color: rgb(122, 133, 34);
/* oklch */ color: oklch(58.9% 0.120 115.8);
Tailwind
colors: {
  custom: {
    50: '#a3a865',
    500: '#7a8522',
    950: '#000000',
  },
}
SCSS
$custom: #7a8522;
$custom-light: #a3a865;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8522",
  "rgb": {
    "r": 122,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 66.667,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58874,
    "c": 0.12019,
    "h": 115.8
  },
  "luminance": 0.21028
}

Semantic roles & 50–950 ramp

primary
#7A8522
secondary
#594DB6
accent
#45E257
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #7A8522

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

Preview Lab → · Contrast checker → · Palette generator →

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