#7A8915#7A8915

#7A8915 is a mid, vivid yellow. Relative luminance 0.221; OKLCH L 59.8% C 0.132 H 117.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7A8915
RGBrgb(122, 137, 21)
HSLhsl(68, 73%, 31%)
HSVhsv(68, 85%, 54%)
CMYKcmyk(10.9%, 0%, 84.7%, 46.3%)
CIE-LABlab(54.12, -19.91, 54.01)
CIE-LCHlch(54.12, 57.57, 110.24°)
OKLaboklab(59.77% -0.0606 0.1169)
OKLCHoklch(59.77% 0.132 117.4)
XYZxyz(17.1075, 22.0832, 4.0706)
Luminance0.2208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8915 #241589
analogous
#895E15 #7A8915 #408915
triadic
#7A8915 #157A89 #89157A
tetradic
#7A8915 #15895E #241589 #891540
square
#7A8915 #15895E #241589 #891540
split-complementary
#7A8915 #154089 #5E1589
monochromatic
#1B1F05 #4B540D #7A8915 #A9BE1D #CBE038

Accessibility & contrast

On white

3.88
#7A8915 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#7A8915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8915
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8915#FFFFFF#000000##000000
##7A89151.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#828174
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7a8915;
/* rgb */ color: rgb(122, 137, 21);
/* oklch */ color: oklch(59.8% 0.132 117.4);
Tailwind
colors: {
  custom: {
    50: '#a4ab60',
    500: '#7a8915',
    950: '#000000',
  },
}
SCSS
$custom: #7a8915;
$custom-light: #a4ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8915",
  "rgb": {
    "r": 122,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 67.759,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59765,
    "c": 0.1317,
    "h": 117.4
  },
  "luminance": 0.22083
}

Semantic roles & 50–950 ramp

primary
#7A8915
secondary
#4D3DBD
accent
#38F050
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7A8915

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

Preview Lab → · Contrast checker → · Palette generator →

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