#A7B42C#A7B42C

#A7B42C is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.6% C 0.153 H 115.1°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#A7B42C
RGBrgb(167, 180, 44)
HSLhsl(66, 61%, 44%)
HSVhsv(66, 76%, 71%)
CMYKcmyk(7.2%, 0%, 75.6%, 29.4%)
CIE-LABlab(70.20, -21.17, 62.88)
CIE-LCHlch(70.20, 66.35, 108.61°)
OKLaboklab(73.59% -0.0647 0.1383)
OKLCHoklch(73.59% 0.153 115.1)
XYZxyz(32.7132, 41.0404, 8.5807)
Luminance0.4104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B42C #392CB4
analogous
#B47D2C #A7B42C #63B42C
triadic
#A7B42C #2CA7B4 #B42CA7
tetradic
#A7B42C #2CB47D #392CB4 #B42C63
square
#A7B42C #2CB47D #392CB4 #B42C63
split-complementary
#A7B42C #2C63B4 #7D2CB4
monochromatic
#4C5214 #798320 #A7B42C #C6D34A #D5DF7C

Accessibility & contrast

On white

2.28
#A7B42C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#A7B42C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B42C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B42C#FFFFFF#000000##000000
##A7B42C1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB0A
Deuteranopia (green-blind)
#C0AD38
Tritanopia (blue-blind)
#B2A99A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a7b42c;
/* rgb */ color: rgb(167, 180, 44);
/* oklch */ color: oklch(73.6% 0.153 115.1);
Tailwind
colors: {
  custom: {
    50: '#c5ca70',
    500: '#a7b42c',
    950: '#000000',
  },
}
SCSS
$custom: #a7b42c;
$custom-light: #c5ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b42c",
  "rgb": {
    "r": 167,
    "g": 180,
    "b": 44
  },
  "hsl": {
    "h": 65.735,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.73589,
    "c": 0.15264,
    "h": 115.1
  },
  "luminance": 0.4104
}

Semantic roles & 50–950 ramp

primary
#A7B42C
secondary
#7D75C7
accent
#44E453
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B42C

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

Preview Lab → · Contrast checker → · Palette generator →

#A7B42C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva