#A7B331#A7B331

#A7B331 is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.4% C 0.149 H 114.7°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#A7B331
RGBrgb(167, 179, 49)
HSLhsl(66, 57%, 45%)
HSVhsv(66, 73%, 70%)
CMYKcmyk(6.7%, 0%, 72.6%, 29.8%)
CIE-LABlab(69.95, -20.44, 60.94)
CIE-LCHlch(69.95, 64.28, 108.54°)
OKLaboklab(73.39% -0.0622 0.135)
OKLCHoklch(73.39% 0.149 114.7)
XYZxyz(32.6117, 40.6780, 9.0388)
Luminance0.4068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B331 #3D31B3
analogous
#B37E31 #A7B331 #66B331
triadic
#A7B331 #31A7B3 #B331A7
tetradic
#A7B331 #31B37E #3D31B3 #B33166
square
#A7B331 #31B37E #3D31B3 #B33166
split-complementary
#A7B331 #3166B3 #7E31B3
monochromatic
#4D5317 #7A8324 #A7B331 #C4D052 #D4DD82

Accessibility & contrast

On white

2.30
#A7B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#A7B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B331
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B331#FFFFFF#000000##000000
##A7B3311.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA18
Deuteranopia (green-blind)
#BFAC3C
Tritanopia (blue-blind)
#B2A89A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a7b331;
/* rgb */ color: rgb(167, 179, 49);
/* oklch */ color: oklch(73.4% 0.149 114.7);
Tailwind
colors: {
  custom: {
    50: '#c4c972',
    500: '#a7b331',
    950: '#000000',
  },
}
SCSS
$custom: #a7b331;
$custom-light: #c4c972;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b331",
  "rgb": {
    "r": 167,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 65.538,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.73394,
    "c": 0.14868,
    "h": 114.7
  },
  "luminance": 0.40677
}

Semantic roles & 50–950 ramp

primary
#A7B331
secondary
#817AC6
accent
#48E056
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B331

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

Preview Lab → · Contrast checker → · Palette generator →

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