#AFB12A#AFB12A

#AFB12A is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.6% C 0.148 H 110.4°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#AFB12A
RGBrgb(175, 177, 42)
HSLhsl(61, 62%, 43%)
HSVhsv(61, 76%, 69%)
CMYKcmyk(1.1%, 0%, 76.3%, 30.6%)
CIE-LABlab(69.98, -16.31, 63.55)
CIE-LCHlch(69.98, 65.61, 104.39°)
OKLaboklab(73.57% -0.0518 0.139)
OKLCHoklch(73.57% 0.148 110.4)
XYZxyz(33.8205, 40.7264, 8.2695)
Luminance0.4073 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB12A #2C2AB1
analogous
#B16F2A #AFB12A #6BB12A
triadic
#AFB12A #2AAFB1 #B12AAF
tetradic
#AFB12A #2AB16F #2C2AB1 #B12A6B
square
#AFB12A #2AB16F #2C2AB1 #B12A6B
split-complementary
#AFB12A #2A6BB1 #6F2AB1
monochromatic
#4D4E13 #7E801E #AFB12A #D1D345 #DDDF77

Accessibility & contrast

On white

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

On black

9.15
#AFB12A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB12A
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB12A#FFFFFF#000000##000000
##AFB12A1.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA905
Deuteranopia (green-blind)
#C1AD36
Tritanopia (blue-blind)
#BCA698
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb12a;
/* rgb */ color: rgb(175, 177, 42);
/* oklch */ color: oklch(73.6% 0.148 110.4);
Tailwind
colors: {
  custom: {
    50: '#cbc86f',
    500: '#afb12a',
    950: '#000000',
  },
}
SCSS
$custom: #afb12a;
$custom-light: #cbc86f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb12a",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 42
  },
  "hsl": {
    "h": 60.889,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73565,
    "c": 0.14836,
    "h": 110.4
  },
  "luminance": 0.40725
}

Semantic roles & 50–950 ramp

primary
#AFB12A
secondary
#7270C6
accent
#43E545
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB12A

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

Preview Lab → · Contrast checker → · Palette generator →

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