#AFB128#AFB128

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

Color values

HEX#AFB128
RGBrgb(175, 177, 40)
HSLhsl(61, 63%, 43%)
HSVhsv(61, 77%, 69%)
CMYKcmyk(1.1%, 0%, 77.4%, 30.6%)
CIE-LABlab(69.97, -16.39, 64.17)
CIE-LCHlch(69.97, 66.23, 104.33°)
OKLaboklab(73.55% -0.0522 0.14)
OKLCHoklch(73.55% 0.149 110.4)
XYZxyz(33.7856, 40.7124, 8.0856)
Luminance0.4071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB128 #2A28B1
analogous
#B16F28 #AFB128 #6AB128
triadic
#AFB128 #28AFB1 #B128AF
tetradic
#AFB128 #28B16F #2A28B1 #B1286A
square
#AFB128 #28B16F #2A28B1 #B1286A
split-complementary
#AFB128 #286AB1 #6F28B1
monochromatic
#4C4D11 #7E7F1D #AFB128 #D2D442 #DEE074

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB128#FFFFFF#000000##000000
##AFB1281.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)
#BFA900
Deuteranopia (green-blind)
#C1AD34
Tritanopia (blue-blind)
#BCA598
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb128;
/* rgb */ color: rgb(175, 177, 40);
/* oklch */ color: oklch(73.6% 0.149 110.4);
Tailwind
colors: {
  custom: {
    50: '#cbc86e',
    500: '#afb128',
    950: '#000000',
  },
}
SCSS
$custom: #afb128;
$custom-light: #cbc86e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb128",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 40
  },
  "hsl": {
    "h": 60.876,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.73554,
    "c": 0.14938,
    "h": 110.4
  },
  "luminance": 0.40711
}

Semantic roles & 50–950 ramp

primary
#AFB128
secondary
#6F6EC7
accent
#42E644
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB128

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

Preview Lab → · Contrast checker → · Palette generator →

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