#A7B117#A7B117

#A7B117 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.8% C 0.158 H 113.8°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#A7B117
RGBrgb(167, 177, 23)
HSLhsl(64, 77%, 39%)
HSVhsv(64, 87%, 69%)
CMYKcmyk(5.6%, 0%, 87%, 30.6%)
CIE-LABlab(69.27, -20.39, 67.66)
CIE-LCHlch(69.27, 70.67, 106.77°)
OKLaboklab(72.81% -0.064 0.1449)
OKLCHoklch(72.81% 0.158 113.8)
XYZxyz(31.8142, 39.7223, 6.8017)
Luminance0.3972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B117 #2117B1
analogous
#B16E17 #A7B117 #5AB117
triadic
#A7B117 #17A7B1 #B117A7
tetradic
#A7B117 #17B16E #2117B1 #B1175A
square
#A7B117 #17B16E #2117B1 #B1175A
split-complementary
#A7B117 #175AB1 #6E17B1
monochromatic
#414509 #747B10 #A7B117 #D6E223 #E0E959

Accessibility & contrast

On white

2.35
#A7B117 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.94
#A7B117 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B117
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B117#FFFFFF#000000##000000
##A7B1171.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BFAA29
Tritanopia (blue-blind)
#B3A697
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a7b117;
/* rgb */ color: rgb(167, 177, 23);
/* oklch */ color: oklch(72.8% 0.158 113.8);
Tailwind
colors: {
  custom: {
    50: '#c5c868',
    500: '#a7b117',
    950: '#000000',
  },
}
SCSS
$custom: #a7b117;
$custom-light: #c5c868;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b117",
  "rgb": {
    "r": 167,
    "g": 177,
    "b": 23
  },
  "hsl": {
    "h": 63.896,
    "s": 77,
    "l": 39.216
  },
  "oklch": {
    "l": 0.72814,
    "c": 0.15842,
    "h": 113.8
  },
  "luminance": 0.39722
}

Semantic roles & 50–950 ramp

primary
#A7B117
secondary
#5F57CD
accent
#34F441
background
#FCFCF6
surface
#F9F8EB
border
#D2D1C6
text
#131307
muted
#82827A

Preview Lab

Preview with #A7B117

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

Preview Lab → · Contrast checker → · Palette generator →

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