#A8B271#A8B271

#A8B271 is a light, moderate yellow. Relative luminance 0.414; OKLCH L 74.0% C 0.088 H 115.7°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#A8B271
RGBrgb(168, 178, 113)
HSLhsl(69, 30%, 57%)
HSVhsv(69, 37%, 70%)
CMYKcmyk(5.6%, 0%, 36.5%, 30.2%)
CIE-LABlab(70.43, -13.97, 32.09)
CIE-LCHlch(70.43, 35.00, 113.54°)
OKLaboklab(74.01% -0.038 0.079)
OKLCHoklch(74.01% 0.088 115.7)
XYZxyz(35.0496, 41.3582, 21.7561)
Luminance0.4136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B271 #7B71B2
analogous
#B29C71 #A8B271 #88B271
triadic
#A8B271 #71A8B2 #B271A8
tetradic
#A8B271 #71B29C #7B71B2 #B27188
square
#A8B271 #71B29C #7B71B2 #B27188
split-complementary
#A8B271 #7188B2 #9C71B2
monochromatic
#666D3B #8B9551 #A8B271 #C0C899 #D9DDC0

Accessibility & contrast

On white

2.26
#A8B271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#A8B271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B271
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B271#FFFFFF#000000##000000
##A8B2711.002.269.279.27
#FFFFFF2.261.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBAC6C
Deuteranopia (green-blind)
#BAAD74
Tritanopia (blue-blind)
#AFABA2
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a8b271;
/* rgb */ color: rgb(168, 178, 113);
/* oklch */ color: oklch(74.0% 0.088 115.7);
Tailwind
colors: {
  custom: {
    50: '#c3c99a',
    500: '#a8b271',
    950: '#000000',
  },
}
SCSS
$custom: #a8b271;
$custom-light: #c3c99a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b271",
  "rgb": {
    "r": 168,
    "g": 178,
    "b": 113
  },
  "hsl": {
    "h": 69.231,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.74013,
    "c": 0.08767,
    "h": 115.7
  },
  "luminance": 0.41358
}

Semantic roles & 50–950 ramp

primary
#A8B271
secondary
#B6B2CD
accent
#62C671
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#12130E
muted
#81827E

Preview Lab

Preview with #A8B271

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

Preview Lab → · Contrast checker → · Palette generator →

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