#AFB434#AFB434

#AFB434 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.3% C 0.146 H 111.7°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#AFB434
RGBrgb(175, 180, 52)
HSLhsl(62, 55%, 45%)
HSVhsv(62, 71%, 71%)
CMYKcmyk(2.8%, 0%, 71.1%, 29.4%)
CIE-LABlab(70.87, -17.37, 60.98)
CIE-LCHlch(70.87, 63.40, 105.90°)
OKLaboklab(74.3% -0.0538 0.1354)
OKLCHoklch(74.3% 0.146 111.7)
XYZxyz(34.6214, 42.0053, 9.5322)
Luminance0.4200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB434 #3934B4
analogous
#B47934 #AFB434 #6FB434
triadic
#AFB434 #34AFB4 #B434AF
tetradic
#AFB434 #34B479 #3934B4 #B4346F
square
#AFB434 #34B479 #3934B4 #B4346F
split-complementary
#AFB434 #346FB4 #7934B4
monochromatic
#535519 #818526 #AFB434 #CACE57 #D9DC86

Accessibility & contrast

On white

2.23
#AFB434 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#AFB434 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB434
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB434#FFFFFF#000000##000000
##AFB4341.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC1D
Deuteranopia (green-blind)
#C2AF3E
Tritanopia (blue-blind)
#BBA99B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb434;
/* rgb */ color: rgb(175, 180, 52);
/* oklch */ color: oklch(74.3% 0.146 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca74',
    500: '#afb434',
    950: '#000000',
  },
}
SCSS
$custom: #afb434;
$custom-light: #caca74;
$custom-dark: #000000;
JSON
{
  "hex": "#afb434",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 52
  },
  "hsl": {
    "h": 62.344,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74295,
    "c": 0.14569,
    "h": 111.7
  },
  "luminance": 0.42004
}

Semantic roles & 50–950 ramp

primary
#AFB434
secondary
#817EC6
accent
#49DF4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB434

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

Preview Lab → · Contrast checker → · Palette generator →

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