#A7B151#A7B151

#A7B151 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.2% C 0.121 H 114.4°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#A7B151
RGBrgb(167, 177, 81)
HSLhsl(66, 38%, 51%)
HSVhsv(66, 54%, 69%)
CMYKcmyk(5.6%, 0%, 54.2%, 30.6%)
CIE-LABlab(69.65, -17.25, 47.19)
CIE-LCHlch(69.65, 50.25, 110.08°)
OKLaboklab(73.24% -0.05 0.1105)
OKLCHoklch(73.24% 0.121 114.4)
XYZxyz(33.1443, 40.2544, 13.8068)
Luminance0.4025 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B151 #5B51B1
analogous
#B18B51 #A7B151 #77B151
triadic
#A7B151 #51A7B1 #B151A7
tetradic
#A7B151 #51B18B #5B51B1 #B15177
square
#A7B151 #51B18B #5B51B1 #B15177
split-complementary
#A7B151 #5177B1 #8B51B1
monochromatic
#585E2A #80883D #A7B151 #BCC47B #D2D7A6

Accessibility & contrast

On white

2.32
#A7B151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.05
#A7B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B151
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B151#FFFFFF#000000##000000
##A7B1511.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA948
Deuteranopia (green-blind)
#BCAB56
Tritanopia (blue-blind)
#B0A89C
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a7b151;
/* rgb */ color: rgb(167, 177, 81);
/* oklch */ color: oklch(73.2% 0.121 114.4);
Tailwind
colors: {
  custom: {
    50: '#c3c885',
    500: '#a7b151',
    950: '#000000',
  },
}
SCSS
$custom: #a7b151;
$custom-light: #c3c885;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b151",
  "rgb": {
    "r": 167,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 66.25,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.73238,
    "c": 0.12125,
    "h": 114.4
  },
  "luminance": 0.40254
}

Semantic roles & 50–950 ramp

primary
#A7B151
secondary
#9E9AC4
accent
#5ACE66
background
#FCFCF8
surface
#F8F8EF
border
#D1D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #A7B151

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

Preview Lab → · Contrast checker → · Palette generator →

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