#A7C21F#A7C21F

#A7C21F is a light, vivid yellow. Relative luminance 0.469; OKLCH L 76.7% C 0.174 H 119.5°. Best body text is #000000 at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#A7C21F
RGBrgb(167, 194, 31)
HSLhsl(70, 72%, 44%)
HSVhsv(70, 84%, 76%)
CMYKcmyk(13.9%, 0%, 84%, 23.9%)
CIE-LABlab(74.12, -28.47, 69.98)
CIE-LCHlch(74.12, 75.55, 112.14°)
OKLaboklab(76.72% -0.0857 0.1512)
OKLCHoklch(76.72% 0.174 119.5)
XYZxyz(35.4763, 46.8982, 8.4794)
Luminance0.4690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7C21F #3A1FC2
analogous
#C28C1F #A7C21F #55C21F
triadic
#A7C21F #1FA7C2 #C21FA7
tetradic
#A7C21F #1FC28C #3A1FC2 #C21F55
square
#A7C21F #1FC28C #3A1FC2 #C21F55
split-complementary
#A7C21F #1F55C2 #8C1FC2
monochromatic
#4C580E #7A8D17 #A7C21F #C5E03E #D5E973

Accessibility & contrast

On white

2.02
#A7C21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.38
#A7C21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7C21F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7C21F#FFFFFF#000000##000000
##A7C21F1.002.0210.3810.38
#FFFFFF2.021.0021.0021.00
#00000010.3821.001.001.00
##00000010.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB600
Deuteranopia (green-blind)
#CCB732
Tritanopia (blue-blind)
#B1B7A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #a7c21f;
/* rgb */ color: rgb(167, 194, 31);
/* oklch */ color: oklch(76.7% 0.174 119.5);
Tailwind
colors: {
  custom: {
    50: '#c5d46d',
    500: '#a7c21f',
    950: '#000000',
  },
}
SCSS
$custom: #a7c21f;
$custom-light: #c5d46d;
$custom-dark: #000000;
JSON
{
  "hex": "#a7c21f",
  "rgb": {
    "r": 167,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 69.939,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.76725,
    "c": 0.17379,
    "h": 119.5
  },
  "luminance": 0.46898
}

Semantic roles & 50–950 ramp

primary
#A7C21F
secondary
#7E6DCF
accent
#39EF57
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#131408
muted
#82827B

Preview Lab

Preview with #A7C21F

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

Preview Lab → · Contrast checker → · Palette generator →

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