#AFBA2D#AFBA2D

#AFBA2D is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.6% C 0.156 H 114.1°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#AFBA2D
RGBrgb(175, 186, 45)
HSLhsl(65, 61%, 45%)
HSVhsv(65, 76%, 73%)
CMYKcmyk(5.9%, 0%, 75.8%, 27.1%)
CIE-LABlab(72.51, -20.71, 64.92)
CIE-LCHlch(72.51, 68.14, 107.69°)
OKLaboklab(75.59% -0.0637 0.1425)
OKLCHoklch(75.59% 0.156 114.1)
XYZxyz(35.7128, 44.4219, 9.1751)
Luminance0.4442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA2D #382DBA
analogous
#BA7F2D #AFBA2D #68BA2D
triadic
#AFBA2D #2DAFBA #BA2DAF
tetradic
#AFBA2D #2DBA7F #382DBA #BA2D68
square
#AFBA2D #2DBA7F #382DBA #BA2D68
split-complementary
#AFBA2D #2D68BA #7F2DBA
monochromatic
#525715 #818921 #AFBA2D #CAD550 #D9E081

Accessibility & contrast

On white

2.12
#AFBA2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#AFBA2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA2D
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA2D#FFFFFF#000000##000000
##AFBA2D1.002.129.889.88
#FFFFFF2.121.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B108
Deuteranopia (green-blind)
#C7B339
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba2d;
/* rgb */ color: rgb(175, 186, 45);
/* oklch */ color: oklch(75.6% 0.156 114.1);
Tailwind
colors: {
  custom: {
    50: '#cbce71',
    500: '#afba2d',
    950: '#000000',
  },
}
SCSS
$custom: #afba2d;
$custom-light: #cbce71;
$custom-dark: #000000;
JSON
{
  "hex": "#afba2d",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 45
  },
  "hsl": {
    "h": 64.681,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.75592,
    "c": 0.15609,
    "h": 114.1
  },
  "luminance": 0.44421
}

Semantic roles & 50–950 ramp

primary
#AFBA2D
secondary
#8079C9
accent
#44E450
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFBA2D

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

Preview Lab → · Contrast checker → · Palette generator →

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