#AFBA56#AFBA56

#AFBA56 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 75.9% C 0.125 H 114.6°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#AFBA56
RGBrgb(175, 186, 86)
HSLhsl(67, 42%, 53%)
HSVhsv(67, 54%, 73%)
CMYKcmyk(5.9%, 0%, 53.8%, 27.1%)
CIE-LABlab(72.83, -18.07, 48.67)
CIE-LCHlch(72.83, 51.91, 110.37°)
OKLaboklab(75.95% -0.0523 0.114)
OKLCHoklch(75.95% 0.125 114.6)
XYZxyz(36.9185, 44.9042, 15.5248)
Luminance0.4490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA56 #6156BA
analogous
#BA9356 #AFBA56 #7DBA56
triadic
#AFBA56 #56AFBA #BA56AF
tetradic
#AFBA56 #56BA93 #6156BA #BA567D
square
#AFBA56 #56BA93 #6156BA #BA567D
split-complementary
#AFBA56 #567DBA #9356BA
monochromatic
#636A2B #8C963D #AFBA56 #C4CC81 #D8DDAD

Accessibility & contrast

On white

2.10
#AFBA56 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#AFBA56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA56
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA56#FFFFFF#000000##000000
##AFBA561.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B24C
Deuteranopia (green-blind)
#C5B45C
Tritanopia (blue-blind)
#B9B1A4
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afba56;
/* rgb */ color: rgb(175, 186, 86);
/* oklch */ color: oklch(75.9% 0.125 114.6);
Tailwind
colors: {
  custom: {
    50: '#c9ce89',
    500: '#afba56',
    950: '#000000',
  },
}
SCSS
$custom: #afba56;
$custom-light: #c9ce89;
$custom-dark: #000000;
JSON
{
  "hex": "#afba56",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 86
  },
  "hsl": {
    "h": 66.6,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.7595,
    "c": 0.12543,
    "h": 114.6
  },
  "luminance": 0.44904
}

Semantic roles & 50–950 ramp

primary
#AFBA56
secondary
#A5A0CB
accent
#56D264
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFBA56

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

Preview Lab → · Contrast checker → · Palette generator →

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