#AFB142#AFB142

#AFB142 is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.7% C 0.133 H 110.2°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#AFB142
RGBrgb(175, 177, 66)
HSLhsl(61, 46%, 48%)
HSVhsv(61, 63%, 69%)
CMYKcmyk(1.1%, 0%, 62.7%, 30.6%)
CIE-LABlab(70.14, -15.03, 54.68)
CIE-LCHlch(70.14, 56.71, 105.37°)
OKLaboklab(73.74% -0.0458 0.1244)
OKLCHoklch(73.74% 0.133 110.2)
XYZxyz(34.3857, 40.9525, 11.2465)
Luminance0.4095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB142 #4442B1
analogous
#B17B42 #AFB142 #78B142
triadic
#AFB142 #42AFB1 #B142AF
tetradic
#AFB142 #42B17B #4442B1 #B14278
square
#AFB142 #42B17B #4442B1 #B14278
split-complementary
#AFB142 #4278B1 #7B42B1
monochromatic
#575821 #838431 #AFB142 #C5C769 #D7D896

Accessibility & contrast

On white

2.28
#AFB142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.19
#AFB142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB142
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB142#FFFFFF#000000##000000
##AFB1421.002.289.199.19
#FFFFFF2.281.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAA34
Deuteranopia (green-blind)
#BFAD49
Tritanopia (blue-blind)
#BBA69A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb142;
/* rgb */ color: rgb(175, 177, 66);
/* oklch */ color: oklch(73.7% 0.133 110.2);
Tailwind
colors: {
  custom: {
    50: '#cac87c',
    500: '#afb142',
    950: '#000000',
  },
}
SCSS
$custom: #afb142;
$custom-light: #cac87c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb142",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 61.081,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.73742,
    "c": 0.13254,
    "h": 110.2
  },
  "luminance": 0.40952
}

Semantic roles & 50–950 ramp

primary
#AFB142
secondary
#8C8BC3
accent
#52D555
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB142

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

Preview Lab → · Contrast checker → · Palette generator →

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